How to Create Internal Transition in State

A UML state internal transition is a type of transition within a state machine where an event triggers a behaviour without causing the state to change. Unlike external transitions, which move an object from one state to another, internal transitions allow actions to be executed while remaining in the same state. To create internal transition in state:

  1. Right click on the state to create a Region, either horizontal or vertical region.

    Create region on state

    Create region on state

  2. Right click on the region and select Open Specification from popup menu.

    Open specification dialog of region

    Open specification dialog of region

  3. Switch to Internal Transitions tab in Region Specification dialog, and press Add button at the bottom left.

    Create Internal Transition

    Create Internal Transition

  4. Enter the details of the Internal Transition, such as name and guard condition.

    Define details of the transition

    Define details of the transition

  5. Optionally you can also define the Effect of the transition.

    Optionally define the effect for the transition

    Optionally define the effect for the transition

  6. Press OK to close the specification dialogs.
  7. Now the Internal Transition being show in the state.

    State with Internal Transition

    State with Internal Transition

Related Know-how

Related Link

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply