+49 (30) 467086-20 service@microtool.de
Products » objectiF RPM » Requirements engineering » Diagrams » The State Machine Diagram

The State Machine Diagram

When is which state reached? Which event triggers the state transition? A state machine describes the states that an element, such as requirements, test cases, etc., passes through. It describes which events must occur or which guards must be satisfied for a state transition to take place and which actions are executed when a state transition occurs or a state is reached.
Hint
This diagram type is not supported in the web client.

Diagram

Beispiel eines Zustandsdiagramms

Toolbar

A toolbar is available on the left side of the diagram for working in the diagram. This toolbar is used to create elements and relationships and to add existing elements to the diagram. A tooltip indicates which elements and relationships can be created with a button when you move the mouse pointer over the button.

Elements that are created in a diagram are created in the package in which the diagram is also located.

Permitted diagram elements

New elements are always created according to the same principle: Click the button and then click in the diagram. A creation dialog opens, and as soon as the dialog is confirmed, the element is displayed in the diagram.

Neu anlegen

With the selection tool (arrow), you can:

  • Move the diagram background: Click the diagram background and drag it to another position while holding down the left mouse button.
  • Edit diagram elements and relationships: Right-click a diagram element or relationship to open the context menu.
  • Select diagram elements: Hold down the Shift key and use the left mouse button to drag a frame around the desired element nodes. Selected nodes are highlighted. Click the diagram background to clear the selection.
Icon Zustand

Create state

Indicates the state an element can be in for a certain period of time before it transitions to another state.

In the state itself, you can use Edit to define various actions, guards, and events. You determine the order in which states are passed through using state transitions.

Procedure for creating: Click the button and then click the diagram background.
Representation: State node with a blue border
Supported link: Start node, end node, state

Icon jeder Zustand

Any state

Used to create a state so that state transitions can be provided for all states in the diagram.
This state cannot be configured or renamed.

Procedure for creating: Click the button and then click the diagram background.
Representation: State node with a red border
Supported link: itself, state,

Icon Zustand

Create start state

Indicates the beginning of a state machine.
A diagram must contain at least one start node.

Procedure for creating: Click the button and then click the diagram background.
Representation: filled red circle

Icon Zustand

Create end state

Indicates the end of a state machine. Multiple end states can be created.

Procedure for creating: Click the button and then click the diagram background.
Representation: red circle with a filled dot

Icon Zustand

Create note

Used to create a note to provide additional information about the diagram or a diagram element.

Procedure for creating: Click the button and then click the diagram background.
Representation: Note node
Supported link: all permitted diagram elements

Icon Zustand

Create transition

Connects two states and thus defines which state can be transitioned to.
Guards and actions can be defined for state transitions and executed before, during, or after a transition. The defined actions, events, and guards are shown on the relationship line.

Procedure for creating: Click a state (or start node) and then click the subsequent state.
Representation: red line with arrow
Arrow direction: arrowhead points to the subsequent state

Icon Zustand

Create note relationship

Connects a note to another diagram element.

Procedure for creating: Click the note and then click the element node that is described in more detail by the note.
Representation: gray dashed line

Example "Start state"

Startzustand mit Transition und Zustand

Start state with transition and state. As soon as an element for which the state machine is defined is created, it automatically enters the In Definition state.

Example "End state"

Zustände mit Transitionen und Endzustand.

States with transitions and end state. The execution of the state machine ends when either of the two states abgenommen or nicht abgenommen is reached. The element for which the state machine is defined reaches its respective end state.

Example "Transition"

Transition mit Ereignis (In Auftrag geben), Bedingung ([Zustandsprüfung]) und Aktion (Element benachrichtigen).

Transition with event (In Auftrag geben), guard ([Zustandsprüfung]) and Action (Element benachrichtigen). You specify and edit events, guards and actions in  the Properties dialog of the transition.

Example "State"

Der Zustand beauftragt mit seinem Icon und Stereotyp (state).

The state beauftragt with its icon and stereotype (state).