Approval Node (type = "approval")
Used for human-in-the-loop approval/to-do scenarios.
Schema
- Node class: ApprovalNode.java
- Executor: ApprovalNodeExecutor.java
Example
Runtime interaction:
- On first execution, if there is no decision:
HumanTaskServicecreates 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:
ApprovalNodeExecutorcompletes the task and writes the decision back to the context.