State Machine: pre_transitionΒΆ
Plugin ID: state_machine:state_machine.pre_transition
Available since: 1.0.0
Provided tokens
| Token | Description |
|---|---|
[user] |
The current user. Alias: current_user |
[entity] |
The entity. |
[event] |
The event. |
[event:entity] |
The entity. |
[event] |
The event. |
[event:machine_name] |
The machine name of the ECA event. |
[session_user] |
The user account that dispatched the event, regardless if ECA is processing models under a different account. This is only available if ECA is configured to always run under a specific account. |
Fires before a state machine workflow transition is applied to an entity. Use this to validate or prevent transitions.
The [entity] token provides the entity undergoing the transition.