SinelaboreRT Header Logo

SinelaboreRT

As simple as possible, but not any simpler!

User Tools

Site Tools


wiki:howto:enterprise_architect_how-to

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:howto:enterprise_architect_how-to [2012/10/22 20:17] pmuellerwiki:howto:enterprise_architect_how-to [2019/01/01 18:44] (current) – [Enterprise Architect HowTo] pmueller
Line 1: Line 1:
 +{{description>Enterprise Architect HowTo}}
 +
 +
 ====== Enterprise Architect HowTo ====== ====== Enterprise Architect HowTo ======
  
-Below some tips and tricks are listed that simplify the state-chart creation using Enterprise Architect. If you have further hints let us know and we add them here.+Below some tips and tricks are listed that simplify the state-chart creation using Enterprise Architect. If you have further hints let us know and we add them here. For a short intro on on how to use EA with the codegen go on reading [[wiki:landing_pages:ea|here]].
  
-:Q:** Where to put the events to:**+:?: ** Where to put the events to:**
  
-:A: States should be put “below” the class containing the state diagram. See next figure.+:!: States should be put “below” the class containing the state diagram. See next figure.
  
 {{ :wiki:howto:ea_howto_model_browser_ea9.jpg?nolink |}} {{ :wiki:howto:ea_howto_model_browser_ea9.jpg?nolink |}}
Line 13: Line 16:
  
  
-:Q:** How to define the path to the state machine:**+:?: ** How to define the path to the state machine:**
  
-:A: Since version 9.0 of Enterprise architect it looks like that always a view package is required. This package must appear in the path you specify on the codegen command line. In the figure above the path to the state machine is -t "Model:test:testclass"+:!: Since version 9.0 of Enterprise architect it looks like that always a view package is required. This package must appear in the path you specify on the codegen command line. In the figure above the path to the state machine is -t "Model:test:testclass"
  
  
Line 21: Line 24:
  
  
-:Q:** I always get the error message ‘Can't find path element ....’. But I’m sure the path is correct:**+:?: ** I always get the error message ‘Can't find path element ....’. But I’m sure the path is correct:**
  
-:A: Most probably you have not selected to root element (e.g. Model in the figure above) before exporting the XMI file. Select the root model element and then export to XMI.+:!: Most probably you have not selected to root element (e.g. Model in the figure above) before exporting the XMI file. Select the root model element and then export to XMI.
  
  
Line 29: Line 32:
  
  
-:Q:** How to specify multiple lines entry/exit/do action code:**+:?: ** How to specify multiple lines entry/exit/do action code:**
  
  
-:A: So far there were two ways. The codegen took the name of the action as code. To specify multiple lines it was necessary to specify several actions. The other option was to attach a comment to a state and define the code there. +:!: So far there were two ways. The codegen took the name of the action as code. To specify multiple lines it was necessary to specify several actions. The other option was to attach a comment to a state and define the code there. 
  
 Now with EA 9.2 it is possible to specify multiple lines of action code in the behavior field. The name of the action is not used anymore as code line if code is found in the behavior field. The strange thing is that EA allows to define initial code which is unfortunately not exported in the normal XMI state tree. So it can't be used right now. In the example below two lines of entry code were added to S1. Now with EA 9.2 it is possible to specify multiple lines of action code in the behavior field. The name of the action is not used anymore as code line if code is found in the behavior field. The strange thing is that EA allows to define initial code which is unfortunately not exported in the normal XMI state tree. So it can't be used right now. In the example below two lines of entry code were added to S1.
  
 {{ :wiki:howto:ea_howto_state_action_code.jpg?nolink |}} {{ :wiki:howto:ea_howto_state_action_code.jpg?nolink |}}
 +
 +:?: ** Where do I find the "export to XMI" dialog? **
 +
 +:!: In recent versions of EA the export to XMI is available under ''Publish -> Export XMI''
wiki/howto/enterprise_architect_how-to.1350929836.txt.gz · Last modified: 2012/10/22 20:17 by pmueller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki