Insert Exit Node

The Insert Exit Node command inserts an exit point on the diagram. This exit point corresponds to an exit condition for the element on which the diagram has been opened and represents the mapping between internally represented exit behavior and the externally represented exit branches for a function. This command is available either from the menu structure or by dragging the Exit construct from the diagram palette to the desired insertion point. CORE will prompt you to select the existing exit of interest or create new elements of interest using the insert exit node dialog.

 

 

If you insert by using the menu commands, CORE will insert based upon your current selection. If a node or construct is selected, CORE will insert before the selected object. If a branch is selected, CORE will insert at the end of the branch. If nothing is selected, CORE will insert at the end of the main branch.

 

There should be at least one exit node in the function decomposition for each exit branch for the function. The name for the corresponding exit branch is shown below each exit node icon. When an exit node is encountered during simulation, the decomposition level is exited and the corresponding branch of the multi-exit function is followed.  

 

For ease of use, CORE uses the standard insertion approaches for inserting exits. However, because exits represent the point at which you exit the decomposition logic, there are specific rules for where an exit can be inserted. Specifically, an exit must be inserted at the end of a branch (otherwise, the remaining branch logic would be orphaned). If you attempt to insert an exit at an invalid point, CORE will prompt you accordingly.

 

 

Creating New Exits

The insert exit node dialog is populated with the list of exits defined for the parent function (specified using the exits by relationship). If you add a new exit that is not on the drop-down list, you will be modifying the parent function by adding the exit to the exits by relationship. This is handled automatically and maintains the consistency of the model.