Choice

A Choice is a node in a state machine; at the node, an in-cycle evaluation of the subsequent guard conditions is done. It has at least one incoming and one outgoing transition. Choice nodes can be positioned top-level in statecharts, in composite states, and in regions. If several choices are connected by transitions, the connection must be designed in a way that no circular connection exists, such as recirculation to a choice that is already the source element of a transition in this chain.

Choice 1:

A choice is displayed as a diamond. The circle with the flow-control number indicates the order of processing.

Properties

"Property"

Description

"Identifier"

Here you can enter a name. It is not displayed in the state diagram.

Edit choice

User input in the state diagram

Response in the state diagram

Description

Focus on a choice.

Choice 2:

The choice is editable.

  • You can add outgoing transitions via the command icon above the choice.

Click on the green symbol Choice 3:

 

An outgoing transition is created. If you click on an existing state, it becomes the target state of the transition. Click in an empty area to create a new state.

Example of a choice

Choice 4: