Contents | SCXML Wiki | Forum |
---|
Transitions define how a state reacts to events that are generated either by the state machine or external entities. When events occur, the state machine checks for a matching transition defined in the active state and moves to its target state.
- Lines
- Square (IN: Top|Bottom)
- Square (IN: Left|Right)
- Curve
- Connection over Left | Top | Right | Bottom
A self transition is a transition that starts and ends in the same state.
- select state and press 'Make Self-connection' button in 'Tools (Bookmarks)' panel
- select state, right-click to call context menu and hit menu item 'Make Self-connection'
Multiple self transitions may be quickly arranged by pressing 'Arrange Self-connections' menu item. Primary left and right coordinates for transitions are defined by the first transition
It is available since ScxmlEditor 2.4 to arrange self transitions inside of state.
- Set option
SelfConnectionInside
totrue
in the property inspector - Execute
Arrange Self-Connections
command from IDE Insight or right popup menu - (Optionally) Align Self-Transition to left, top, right or bottom side of the state
A delayed transition is a transition that happens after a period of time, specifically being in a specific state for a certain amount of time.
Delayed transitions are not part of SCXML. Instead, you have to specify to send a delayed event, and a normal transition that handles that event. The delayed event must be given a name, and also a unique identifier (in order to cancel the delayed event).
- Select a transition that you want to be copied
-
Press 'Ctrl+C'
-
Select two states that would be a source and a target of the transition
- Press 'Ctrl+V'
- Adjust transition layout if necessary
TOP | Contents | SCXML Wiki | Forum |
---|