workflows.services.executors.approvalΒΆ
Approval step executor.
Module ContentsΒΆ
- class workflows.services.executors.approval.ApprovalExecutor[source]ΒΆ
Bases:
workflows.services.executors.factory.AbstractStepExecutorApproval step executor.
First encounter (no signal) β AWAITING (AwaitingApproval).
On βrejectβ β REJECTED (terminal).
- On βapproveβ:
If this is the last Approval step β APPROVED.
Otherwise β PASSED.
- do_execute(instance, signal)[source]ΒΆ
Execute the approval step and return the resulting state.
- Parameters:
instance (workflows.models.WorkflowInstance) β Workflow instance being processed.
signal (str | None) β External decision signal such as
approveorreject.
- Returns:
ExecutorResult describing the new workflow state and step context.
- Return type: