Skip to main content

Config

An action in the context of a workflow is a specific operation or task that must be performed to trigger a transition from one state to another. Actions represent the work or decisions needed to move forward in the process and are often defined by the rules or conditions of the workflow.

An action indicates what needs to be done at that particular stage before the process can transition to another state.

interface ActionConfig {
headers?: unknown;
meta?: unknown;
as?: string;
name: string;
type: 'MANUAL' | 'AUTO' | 'CHAINED';
steps: StepConfig[];
completionWebhook?: string;
}

Types of Actions

MANUAL

  • An action which required client trigger to execute.
  • Only manual actions are visible while getting allowed action using api.
  • cannot be specified in events on workflow config after action completion.

AUTO

  • An action which required state change to execute.
  • Not visible while getting allowed action using api.
  • cannot be specified in events on workflow config after action completion.

CHAINED

  • An action that necessitates the completion of another action in order to be executed, to which it is directly linked..
  • Not visible while getting allowed action using api.
  • Is specified in events on workflow config after action completion.

Questions