Creating activity final elements

UML final state (activity final) in IBM® Rational® Rhapsody® can signify either local or global termination, depending on where they are placed in the diagram.

About this task

When the state is drawn inside a composite (block) state, it is considered a final state. This terminates the activity represented by the composite state, but not the instance performing the activity. For more information, see Local termination semantics. When the state is drawn inside the top state, it is considered a final activity. This terminates the state machine causing the instance to be destroyed.

An action flow to a final activity is called a completion action flow. Final activities cannot have outgoing action flows. A completion action flow can only have a guard condition.

Note: The behavior of the final activity is controlled by the CG::Statechart::LocalTerminationSemantics property.

Procedure

  1. Click the ActivityFinal button ActivityFinal button.
  2. Click in the activity diagram to place the final activity at the intended location. A final activity looks like a circle with a black dot in its center.
  3. Draw a flow from an action to the final activity.
  4. If you want, enter a guard condition to signal the end of the activity:
    Subactivity - completed

Results

As with the other connectors, final activities and their flows are included in the browser.

Browser showing final activities and their flows


Feedback