Edit Exit Conditions

The Edit Exit Conditions command allows you to assign one or more exit conditions to a function on an activity diagram or EFFBD. This enables you to model multi-exit behavior.

 

Editing exit conditions - either by selecting the command from the menu or by dragging the Exit Condition construct from the diagram palette - opens the target window. This lists all current targets of the exits by relationship for the node. From this window, you can add an existing exit, create a completely new exit, or remove one of the exits associated with the node,

 

 

When adding new exit conditions to a node, the exit branches are added to the diagram in the order that you select or create them in the target window. You can then use the Edit Branch Position command to manually change the order, if desired.

 

 

While it is possible to associate a single exit condition with a given function, there is little value in doing so. Exit conditions are most valuable when denoting which one of multiple paths should be taken upon completion of a function (exit conditions should also correspond to the exit nodes within the function's decomposition). A single exit condition associated with a node will not be shown on an activity diagram or EFFBD. Exit branches are not represented until multiple exit conditions are defined.

 

 

Tips and Tricks

If the exit condition you want to associate with the node already exists, the fastest way to add an exit condition is to select the Key Entities tab on the diagram palette and drag the desired exit onto the node.