# Next Object

# selector


  • Type: object
  • Required
  • Must have the following two attribtues: type (string) and data (obejct).
  • type can hold two types of strings - workflow and operation. In case the type is operation, it means that the next attribute in data object indicates operation, in case the type is workflow, it means that next attribute in data object is workflow.
  • data can hold:
    workflow - Determines which workflow we are currently running
    next - Pointer to the key of the next workflow/operation
    rematch (optional) - In case the operation points to another workflow, we can set this flag to true - thus causing the match function to run again and determine which workflow should run.

# type

Defines the next object type.

# data

Defined as a pointer to the next operation.

# For example:

For this next operation configuration:

next:
  selector:
    - type: operation
      data:
        workflow: example-workflow
        next: process-user-b

The next operation that needs to be performed after running the current operation, for the workflow called example-workflow is process-user-b.