The current state is the instantiated version of the state that the process is in.
The state is instantated, meaning that all data functions in the scenario state are evaluated during a state transition.
string
The key of the current state as defined in the scenario.
string
A short title for the state.
string
A long description of the state.
map of actor ⇒ string
Instructions that can be specific per actor. This is an object where the keys correspond with the actor keys.
{% tabs %} {% tab title="YAML" %}
instructions:
employee: Fill out this form
organization: Waiting for the employee to fill out the form{% endtab %}
{% tab title="JSON" %}
{
"instructions": {
"employee": "Fill out this form",
"organization": "Waiting for the employee to fill out the form"
}
}{% endtab %} {% endtabs %}
list of actions
An array with all instantiated actions that may be performed in this state. The actions are determined by the on property of the state transitions.
Data functions are evaluated when instantiating an action.
Actions that are not allowed to be performed due to the if condition of the action or the state transition are omitted from this list.
The list of actors in the action is filtered based on the by properties of the transition(s). If no actors can perform the action, the action is omitted from the list.
Instantiated actions in the current state do not include the update instructions.
array of notify instructions
List of services that have been (or should be) notified when transitioned into this state.
The responseand actor properties of the current state are only available during a state transition. They can be accessed through data functions.
any
The response that was given for the action that was executed for this state. The response type can be defined as a schema using the response property of the scenario action.
actor
A copy of the instantiated actor of the process that has executed the action.
If it's modified using update instructions, the modifications will persist to the process actor.
Additional properties that are defined in the scenario state are added to the current state when it's instantiated.