Create and wait for approval requests in Inistate from sub-workflows
UnknownWhat this workflow does
This workflow has 9 nodes and runs when another workflow calls it. Along the way it connects Inistate (community).
How it runs
Trigger: When another workflow calls it.
- Set Approval Parameters (Edit Fields (Set)): sets 4 fields: approvedState, rejectedState, checkEveryMinutes…
- Initiate Approval Request (Inistate): uses Inistate
- Wait: pauses before continuing
- Verify Approval Status (Inistate): get
- Check Approval Decision (If): checks a condition and branches into true / false
- Output Approval Decision (Edit Fields (Set)): sets 3 fields: approved, state, documentId
- Evaluate Waiting Condition (If): checks a condition and branches into true / false
- Terminate on Max Checks (Stop and Error): stops the run with an error
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-inistate is verified or supports 3.0 (used in Initiate Approval Request, Verify Approval Status).
Nodes used (6)
- Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Edit Fields (Set)
n8n-nodes-base.set - Inistate
n8n-nodes-inistate.inistate - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Stop and Error
n8n-nodes-base.stopAndError
From the author
Quick overview This sub-workflow is triggered by another n8n workflow, creates an approval request in Inistate, then periodically polls Inistate until the request is approved or rejected and returns the decision (approved flag, state, and documentId) to the…