|
|
Insert Condition |
This helper adds a new condition to a state diagram, in the ‘middle’ of an existing transition.
|
Applicable To |
Transition |
|
Menu
Entry |
Power
Pack Diagram Tools Insert Condition as Source |
|
Menu
Entry |
Power Pack Diagram Tools Insert Condition as Target |
There are two menu entries to invoke this helper:
· Insert Condition as Source
· Insert Condition as Target
In either case, a new condition is added at the center point of the selected transition. Two new transitions are created, and the original is deleted (Rhapsody does not allow an existing transition to be re-routed – this causes model corruption)
Any existing trigger / guard / action is added to one of the two new transitions – depending on which menu entry was selected. If the Target option was selected, then the transition properties are added to the first new transition (that is the one into the new condition) so that the inserted condition becomes the new target of the transition. Otherwise, they are added to the transition out of the new condition. The states/condition will very likely need to be manually moved to make the diagram readable.


