OptionalcompensatedThe unique name of a workflow state responsible for compensating this state if it fails.
OptionalendMarks this state as a terminal state in the workflow.
OptionalexclusiveWhen true, consuming any one of the defined events causes its associated actions to execute. When false, all defined events must be consumed before actions are performed.
OptionalnameThe name of this state, unique within the workflow.
OptionalonThe events to consume and the optional actions to perform when they are received.
OptionaltimeoutsState-specific timeout durations.
OptionalactionExecTimeout?: tasks.ActionExecTimeoutThe maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
OptionaleventTimeout?: tasks.EventTimeoutThe maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
OptionalstateExecTimeout?: tasks.StateExecTimeoutThe maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
OptionaltypeThe state type. Must be EVENT for event-driven states.
A workflow state that waits for one or more CloudEvents, then consumes them and invokes one or more actions sequentially or in parallel.