The Edit Exit Conditions command, accessed in the diagram Toolbox or on the right-click context menu, enables you to assign one or more exit conditions to a function on an Activity diagram, a FFBD, or an EFFBD. This enables you to model multi-exit behavior.
Editing exit conditions - either by selecting the command from the ribbon or by dragging the Exit Condition construct from the diagram Toolbox - 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 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.
NOTE: |
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, a FFBD, or EFFBD. Exit branches are not represented until multiple exit conditions are defined. |
NOTE: |
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 in the diagram Toolbox and drag the desired exit onto the node. |