Human approval
Use this when a step needs a person to approve or reject before the run goes on.
# yaml-language-server: $schema=https://re-cinq.github.io/floor/schemas/pipeline.schema.jsonline: id: human-approval entry: approve exit: done fail: declined start: on: - release.requested args: release: "{release}" args: release: kind: value subject: true nodes: - id: approve station: approve-release reports: - on: release.answered when: decision: approved outcome: approved - on: release.answered when: decision: rejected outcome: rejected - id: done - id: declined edges: - from: approve to: done on: approved - from: approve to: declined on: rejectedstations: approve-release: description: A person approves or rejects the release. kind: human outcomes: - approved - rejected needs: - name: release kind: value produces: []How it works
Section titled “How it works”- The
approve-releasestation has kindhuman, so its visit waits with no deadline. - The node’s
reportslist the events that answer it. Each entry has anon, awhenand theoutcomeit reports. - The edges
approvedandrejectedtake the run todoneor todeclined. - To answer, post an event that names the run by
subjectKey:
{ "name": "release.answered", "payload": { "subjectKey": "release:v1.4", "decision": "approved" }}See Nodes and Events for a running run.