Библиотека / Строительные блоки и утилиты
Строительные блоки и утилиты
Create and wait for approval requests in Inistate from sub-workflows
When another workflow calls it, it provides a reusable building block using Inistate.
Что делает
## Wait for an approval in Inistate ### How it works This workflow is designed to be called by another n8n workflow to create an approval request in Inistate and wait for a final decision. It initializes polling settings, creates the request, then repeatedly waits and checks the request state. When the request reaches an approved or rejected state it returns the decision; if the maximum number of checks is reached, it stops with an error. ### Setup steps - Configure the Inistate credentials used by the Inistate nodes. - Review the Settings node and set the approvedState, rejectedState, checkEveryMinutes, and maxChecks values to match your Inistate process. - Ensure the parent workflow passes any required request or document data expected by the Create approval request node. - Confirm the Return decision node exposes the fields your calling workflow needs, such as approved, state, and documentId. ### Customization Adjust the polling interval and max check count to control how long the workflow waits before timing out, and update the approved/rejected state names if your Inistate workflow uses different labels.
Шаги
- Workflow Triggered
- Set Approval Parameters
- Initiate Approval Request
- Wait for Approval Interval
- Verify Approval Status
- Check Approval Decision
- Evaluate Waiting Condition
- Terminate on Max Checks
- Output Approval Decision
Похожие автоматизации
Автоматизация эл. почтыSend a daily digest of stale Inistate approvals via emailШагов: 6Автоматизация эл. почтыApprove or reject Inistate entries via email using SMTPШагов: 15Строительные блоки и утилитыПараллельный запуск подпроцессов и ожидание завершенияШагов: 14Строительные блоки и утилитыValidate and enrich refund approval requests in an n8n sub-workflowШагов: 4