Append Branch Boundary Language Validator
Loading workflow…
Workflow Description
A fully local template runs three fictional branches from a Manual Trigger, tags each branch in a Set node, then a Code node wraps it with BEGIN, numbered PAYLOAD and END records. A Merge node in Append mode concatenates branches into one stream. A final Code node scans the stream with a state machine, verifying boundaries and internal sequence, and emits one report with each branch's index range, payload count and first violation. An If node routes the report to Success or Failure. No external calls or real data.
How it works
- 1.Run Manual Trigger to fire the three branches at fixed positions
- 2.Each sample Code emits fictional payload and Set adds branch_name with includeOtherFields retaining fields
- 3.Each wrap Code emits BEGIN, numbered PAYLOAD, then END records
- 4.Merge 3.2 in Append mode concatenates all branches in input order
- 5.Final Code scans the stream, detects nesting, orphan ends, gaps, and returns one report
- 6.If checks valid and routes the report to Success or Failure
Use cases
- Proving Append output order before building sequential reports
- Regression tests for branch block adjacency and boundaries
- Diagnosing the first violation instead of eyeballing first/last items
Requirements
- No credentials — fully local template
- For real data: replace sample Code nodes with real records carrying branch_name
- n8n supporting Merge 3.2, Set 3.4, If 2.2, Code 2
Setup and testing in n8n
- Import the JSON, run Manual Trigger, verify valid=true report in Success Path
- Broken boundary: delete the END record in Wrap Branch B, rerun, expect first_violation=MISSING_END in Failure Path
- Sequence gap: change internal_seq to i+2 in Wrap Branch A, expect SEQUENCE_BREAK with index and expected symbol
- Empty branch: empty rows in sample C, expect a valid empty block
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 (15)
Manual Trigger
Manual Trigger
Branch A Payload Samples
Code
Tag Branch A
Set
Wrap Branch A Block
Code
Branch B Payload Samples
Code
Tag Branch B
Set
Wrap Branch B Block
Code
Branch C Payload Samples
Code
Tag Branch C
Set
Wrap Branch C Block
Code
Merge Branch Streams (Append)
Merge
Validate Boundary Language
Code
All Blocks Valid?
If
Success Path
No Op
Failure Path
No Op
Sticky - Boundary Language Rules
Sticky Note
Sticky - Setup and Stages
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