Element: Exception transition
An exception transition controls the switch to the next state or pseudo state if an error or an exception occurs. The exception transition has a guard condition and optionally an action.
An exception transition interrupts the current processing. First, the currently active state is processed until the end of the cycle. Then the system switches to the state which is intended as a reaction to this exception. In this state, error handling and exception handling are executed. The source state is usually a composite, orthogonal state.

Tip
The exception transition is used to exit a composite state from any substate. Its state is evaluated after the DO action for the active state has been executed. Even when the condition for the exception transition is TRUE
the first time a composite state is entered, the DO action of the first state is executed. Because the ENTRY and EXIT actions are not linked to conditions, they are always executed regardless of the exception transition.
You can interpret an exception transition insofar that it does not originate from a composite state, but directly from each substate. The conditions for the exception transitions are evaluated after their DO actions. Because the ENTRY and EXIT actions are not linked to conditions, they are always executed regardless of the exception transition.
Pseudo exception transition
A pseudo exception transition replaces the end state in a composite state.

Sometimes it is neater to use an exception transition instead of an end state in a composite state. This is then drawn at the edge of the composite state. Then the entire composite state is exited under the condition of the exception transition. However, this use does not imply any error behavior. The properties of the exception transition are therefore defined as a pseudo exception transition. It does not affect the cyclic execution behavior.
Properties
Property | Description |
---|---|
Type |
|
Priority | The priority defines the order of processing. Example: Note: If the state has other transitions and you change the priority, then all transitions are affected by the change and they are adapted automatically. |
Pseudo exception |
|
Rising edge |
|
User input
Action | Description |
---|---|
An exception transition with a | NoteIf you do not click an existing element, but in a blank area, then a new state (end state) is created. |
An exception transition with a | |
| When this condition is fulfilled, the switch is made to the transition. |
| When you start typing, the matching components appear in a list box. You can double-click to select the object. This selected method or action is executed when the transition has been switched. |
| The line of a transition can be moved anywhere. The states remain in place. |
| You can use this function to move a transition to another state without losing the previous configuration. The corresponding condition and action remain unchanged. |