Workflow: state transition¶
Available since: 1.0.0
Provided tokens
| Token | Description |
|---|---|
[from_state] |
The source workflow state of the entity. |
[to_state] |
The destination workflow state of 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. |
[entity] |
The entity of the event. |
[ENTITY_TYPE] |
The entity of the event under the name of its entity type. |
Drupal core bug prevents transition recognition under certain circumstances
For more details, there is a workaround available which is described in the Troubleshooting Section
Fields¶
Type (and bundle)-
Select the entity type and bundle to restrict this event to, or choose 'All' to react to transitions on any moderated entity.
From state-
Optionally restrict to the machine name of the previous state.
The machine name of the previous state (e.g.,
draft). Leave empty to match any source state. May be empty for newly created entities. To state-
Optionally restrict to the machine name of the new state.
The machine name of the new state (e.g.,
published). Leave empty to match any destination state.