Setting Behaviors for State Actions in UML State Machine Diagram

In Software Ideas Modeler, you can assign specific behaviors to a state, making it respond with Entry, Do, and Exit actions. These behaviors dictate what activities the state performs when it’s entered, during its execution, and when it exits.

Set Behaviors Using the Properties Dialog

  • Right-Click on the State: In the diagram editor, right-click on the state you want to add behaviors to, and select Properties from the context menu. This opens the Properties dialog for the selected state.
  • Switch to the State Tab: In the Properties dialog, navigate to the State tab. Here, you’ll find options to set behaviors for Entry, Do, and Exit actions.
  • Choose an Activity:
    • Look for the Standard Actions group box within the State tab.
    • For each field (Entry, Do, Exit), click the ellipsis button (...) on the right side of the field.
    • The Project Tree Picker dialog will open, displaying activities available in your project.
  • Assign the Activity:
    • In the Project Tree Picker, locate and select the behavior activity you want to assign for each action (Entry, Do, Exit).
    • Confirm the selection by clicking OK.
  • Confirm and Close:
    • Once you’ve assigned the activities, click OK again in the Properties dialog to save your changes.
State Properties - Standard Actions
State Properties - Standard Actions

Set Behaviors Using Drag-and-Drop from the Project Sidebar

  • Open the Project Sidebar: Make sure the Project sidebar is visible. This shows the project tree, where you can view and access your created activities.
  • Select and Drag the Activity:
    • Locate the desired activity in the project tree. (You can also use the search box.)
    • Click and drag it from the Project sidebar over to the state on the diagram.
  • Choose the Behavior Section (Entry, Do, Exit):
    • As you hover the dragged activity over the state, three virtual sections—Entry, Do, and Exit—will appear.
    • Move the activity over the appropriate section to assign it as the Entry, Do, or Exit action.
  • Drop to Assign:
    • Once you’ve positioned the activity over the desired section, release the mouse button to assign the activity to that specific behavior.
Set Activities as Entry/Do/Exit Behavior for a UML State
Set Activities as Entry/Do/Exit Behavior for a UML State

New Comment

Comment