pub enum Role {
Action,
Selector,
Subflow,
Task,
Sequence,
Listener,
}
Expand description
Defines the behavior of the activity in the workflow.
NOTE: Activities with the subflow role are only permitted in module workflows. Subflows are not supported within function workflows.
Variants§
Action
The default role; performs a specific task.
Selector
Contains child activities and uses an eligibility handler to determine which child activities to execute. This enables the ability to have a dynamic and reactive execution pipeline.
Subflow
Creates a new task context and asynchronously processes its workflow sub-graph on a new thread within the workflow machine. The subflow executes asynchronously from the requestor, allowing the original thread to return immediately. Within this context, multiple task actions can be enqueued, enabling extensive parallel processing. After completing its workflow sub-graph, it enters a stall state, waiting for all its asynchronous task actions to complete.
Task
Asynchronously processes the workflow graph on a new thread within the workflow machine.
Task
activities enable the pipeline to execute asynchronously from its requestor. Task
activities
require a task context to be present; if no task context exists, they execute immediately in the
current thread.