Approval Decision Record Auditor: Timeout Default-Reject and Wrong-Field Detection
Loading workflow…
Workflow Description
This workflow audits a batch of approval requests locally before execution. It compares each request's age against a supplied reference time now, classifies it approved or rejected from the boolean data.approved, auto-rejects undecided requests whose timeout passed, and flags non-boolean values, decisions at the wrong field, or invalid dates/timeouts as ambiguous. An If node sends only approved items to the execute route, then both routes merge into one audit report with counts and per-request reasons.
How it works
- 1.Emit Sample Approval Batch outputs a reference time and six fictional requests
- 2.Evaluate Approval Records validates fields, computes age in hours and classifies each request with a reason
- 3.Is Approved For Execution? passes only execute=true to the execute route
- 4.Mark Execute Route and Mark Blocked Route add a route field keeping other fields
- 5.Merge Audit Routes appends both routes
- 6.Build Audit Summary returns one item with counts, IDs and audit log
Use cases
- Audit ticket approval requests before running actions
- Detect workflows branching on approved at the wrong path
- Apply default rejection to stale pending requests
Requirements
- Input schema now plus requests with id, created_at, timeout_hours, action, data.approved
- ISO reference time
- No credentials required
Setup and testing in n8n
- Import the JSON into n8n and click Execute Workflow
- Check approved=1, rejected=1, expired=1, ambiguous=3, counts_consistent=true
- Change REQ-1004 data.approved to true and rerun to see it approved
- Set requests to an empty array and confirm total_input=0
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (8)
Run Approval Audit Demo
Manual Trigger
Emit Sample Approval Batch
Code
Evaluate Approval Records
Code
Is Approved For Execution?
If
Mark Execute Route
Set
Mark Blocked Route
Set
Merge Audit Routes
Merge
Build Audit Summary
Code
Note: Input and Setup
Sticky Note
Note: Rules and Routing
Sticky Note
Fresh workflows, straight to your inbox
Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.
- New workflows
- Clear overviews
- Setup guides