Une image contenant texte, signe

Description générée automatiquement

Insert Condition

 

Overview

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

Operation

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.

A black text on a white background

Description automatically generated with low confidence

Insert Condition: Original

A blue circle with black text

AI-generated content may be incorrect.

Insert Condition as Target

A diagram of a copyright

AI-generated content may be incorrect.

Inserts Condition as Source