Go To
Synopsis
Jumps to specific points in the processing pipeline.
Schema
- go_to:
target: <string>
description: <text>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
The following fields are used to define the processor:
Field | Required | Default | Description |
---|---|---|---|
target | Y | - | Tag of the target processor to jump to |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | Continue processing if operation fails |
ignore_missing | N | false | Skip processing if referenced field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
Transfers control to a specific processor identified by its tag, allowing for non-linear pipeline execution. This enables complex control flow patterns including loops, conditional branching, and jump-based logic.
The go_to processor searches for a processor with the specified tag and continues execution from that point, skipping all processors in between.
The target processor must have a unique tag within the pipeline. The go_to processor will jump to the first processor found with the matching tag.
This processor is useful for implementing conditional processing paths, error recovery flows, and complex business logic that requires non-sequential execution.
Be careful to avoid infinite loops when using go_to processors. Ensure that your pipeline logic has proper exit conditions to prevent endless processing cycles.
Examples
Basic Jump
Jumping to a specific processor... |
|
skips intermediate processor: |
|
Conditional Jump
Jumping based on field conditions... |
|
jumps when error exists: |
|
Error Recovery Flow
Using go_to for error recovery... |
|
jumps to cleanup on validation failure: |
|
Multi-Path Processing
Creating multiple processing paths... |
|
routes based on user role: |
|
Loop Implementation
Creating a simple processing loop... |
|
increments counter until condition met: |
|