Diagram connectors

A diagram connector functions similarly to a merge node in that it joins several segments in the same statechart. Diagram connectors enable you to jump to different parts of a diagram without drawing spaghetti transitions. This functionality helps avoid cluttering the statechart. The jump is defined by matching names on the source and target diagram connectors.
Note: You can rename diagram connectors, and the checks are performed during code generation.

Diagram connectors must either have input transitions or a single outgoing transition. A statechart can have at most one target diagram connector of each label, but it can have several source diagram connectors with the same label.

During code generation, IBM® Rational® Rhapsody® flattens all junctions and diagram connectors by merging the common suffix to each segment entering the connector.

In both diagram and merge nodes, a label that belongs to an incoming segment is shared and duplicated during code generation among outgoing segments of that connector. The product merges the guards (conjunction), then concatenates the actions.

Note: Both incoming and outgoing transitions cannot have labels. If you label the incoming transitions, do not label the outgoing transition because its label overrides the label of the incoming transition and negate any action or trigger associated with the incoming transition.

Diagram connectors connect different sections of the same statechart, whereas EnterExit points connect different statecharts. See EnterExit points.


Feedback