Skip to main content

reject_current

Function reject_current 

Source
pub async fn reject_current(
    pool: &Pool,
    state: &mut WorkflowState,
    decided_by: i64,
    comment: &str,
) -> Result<bool, ExecError>
Expand description

Reject the current task. Flips the TaskState to Rejected and the WorkflowState to NeedsChanges. The submitter can edit and re-submit; the workflow restarts from the first task on next submit. Returns false, changing nothing, when the step was already decided.

ยงErrors

Driver / query failures.