# Next Object
# selector
- Type:
object - Required
- Must have the following two attribtues:
type(string) anddata(obejct). typecan hold two types of strings -workflowandoperation. In case the type isoperation, 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.datacan 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.