Book a Demo

Author Topic: Creating State Transitions  (Read 2490 times)

tah2k

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Creating State Transitions
« on: January 17, 2006, 02:56:16 pm »
Hi-
I am evaluating Enterprise architect and I am trying to create a transition between a sub-state of a Sub-machine and another state at the same level as the Sub-machine. Since the sub-machine states are contained in a different page, I can figure out how to transition out and up in the hierarchy.
-Tim

Tuser

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
  • So much stuff to do, so little time...
    • View Profile
Re: Creating State Transitions
« Reply #1 on: January 20, 2006, 07:02:29 am »
Solution 1;

In the sub-state diagram, create a Entry/Exit element. In the sub-machine diagram, drag and drop the Entry/Exit element onto the state supporting it and add it as an instance.

Cons are that EA does not seem to create a 'proper' Entry/Exit point, i.e. a 'port-like' element on the state that is attached to the boarder of the state. You have to do this by hand.

Pros are that you have a single Entry/Exit element, shown in to different diagrams.


Solution 2;

Select the sub-machine and right click. Then select 'Add Embedded Element' and add entry/exit points. Name them!

In your sub state diagram, use the special 'Entry' and 'Exit' elements.

To make life easier, name the entry/exit points in the sub-machine the same as the entry/exit elements in the sub-state diagram the same.

Cons are that you have two elements representing the same.

Pros are that you have a nice layout automatically.


Peronally I would go for solution 1. Is consistent.