Provides a mechanism for workflows to await and react to external events, enabling event-driven behavior within workflow systems.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/serverlessworkflow/specification/llms.txt
Use this file to discover all available pages before exploring further.
Properties
Configures the event(s) the workflow must listen to.
Specifies how events are read during the listen operation.Supported values:
data- Reads the event’s dataenvelope- Reads the event’s envelope, including its context attributesraw- Reads the event’s raw data
Configures the iterator, if any, for processing each consumed event.
A
listen task produces a sequentially ordered array of all the events it has consumed, and potentially transformed using foreach.output.as.When foreach is set, the configured operations for events must complete before moving on to the next one. As a result, consumed events should be stored in a First-In-First-Out (FIFO) queue while awaiting iteration.