Skip to content

EventsXor State

- id: a
  type: eventsXor
  timeout: PT15M
  - type: com.github.pull.create
      subject: '123'
  - type: com.github.pull.delete
      subject: '123'


To pause the workflow and wait until one of multiple CloudEvents events is received before proceeding, the eventsXor state might be used. Any event match received will cause this state to complete.

Parameter Description Type Required
type Identifies which kind of StateDefinition is being used. In this case it must be set to eventsXor. string yes
id An identifier unique within the workflow to this one state. string yes
log If defined, the workflow will generate a log when it commences this state. See StateLogging. Structured JQ no
metadata If defined, updates the instance's metadata. See InstanceMetadata. Structured JQ no
transform If defined, modifies the instance's data upon completing the state logic. See StateTransforms. Structured JQ no
transition Identifies which state to transition to next, referring to the next state's unique id. If undefined, this state terminates the workflow. string no
catch Defines behaviour for handling of catchable errors. []ErrorCatchDefinition no
timeout An ISO8601 duration string. string no
events Defines the criteria by which incoming CloudEvents events are evaluated to find a match. ConsumeEventDefinition yes