Sequencer - StateTransition
The Basic Block Execution Control Chart (ECC) State blocks can have StateTransition to other states.
The StateTransition may require an input event to traverse. For this connect the EventIn input to the StateTransition.
It is also possible to set expressions on StateTransition Value property. The transitions expression must evaluate to True value for the transition to be possible to traverse.
Note: When StateTransition is not connected to EventIn input and does not have a condition expression set, it will always be taken, if not limited by the allowed number of transitions.
There are two different transition count limits:
- Basic Block has
TransitionLimitproperty - Basic Block
TransitionModeproperty O option can limit transition count to one per process run.
The State blocks can also have run operation(s) that indicate what logic to execute when the state becomes the current state in ECC.
Note: With Basic Block TransitionMode property option P makes it also possible to run RunOperation linked logic when the ECC stays in the same state during the process run.

Properties
| Property | Description |
|---|---|
| Value | When set, expression syntax must evaluate to true. When not set, there is no condition for the transition. All Argument names, <state_name>.Time, <state_name>.Visited, <state_name>.Active, <port_name>.Connected and <port_name>.<api_name> can be used in the expression as immutable variables. See Expression Syntax for more details. |
Note: All the available variables in the transition's Chai script expression, like Arguments and Port values, are immutable.
See Chai script for syntax help.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.