Skip to main content

Approval Node (type = "approval")

Used for human-in-the-loop approval/to-do scenarios.

Schema

Example

Runtime interaction:

  • On first execution, if there is no decision:
    • HumanTaskService creates a pending task.
    • returns status = WAITING, and the workflow is suspended.
  • After the user acts, an external system calls:
POST /linker/task/human/{taskId}/complete
  • On resume:
    • ApprovalNodeExecutor completes the task and writes the decision back to the context.