Skip to content

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.
[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)
From state

Optionally restrict to the machine name of the previous state.

To state

Optionally restrict to the machine name of the new state.