← Back to Patterns

goto-dynamic-substep-from-named

Demonstrates GOTO {N}.Name - jumping to a named substep within a dynamic step

navigation dynamic substeps

Source


# GOTO Dynamic Named Substep

Demonstrates `GOTO {N}.Name` - jumping to a named substep within a dynamic step.

## {N}. Process Item

### {N}.Validate
- PASS: CONTINUE
- FAIL: GOTO {N}.Cleanup

Validate the current item.

### {N}.Execute
- PASS: GOTO NEXT
- FAIL: GOTO {N}.Cleanup

Execute processing for validated item.

### {N}.Cleanup
- PASS: GOTO NEXT
- FAIL: STOP

Clean up after validation or execution failure.

Try It

Cleanup substep fails causing runbook to stop

Initializing...

Initializing...

Step/
ExpectedSTOP
Env idle