mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-09-30 21:44:57 +02:00
Complete rewrite and re-architecture Osmedeus Engine in v5
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
name: test-decision
|
||||
kind: module
|
||||
description: Test conditional step routing with decision
|
||||
tags: test,decision,conditional
|
||||
|
||||
params:
|
||||
- name: target
|
||||
required: true
|
||||
|
||||
steps:
|
||||
- name: check-condition
|
||||
type: bash
|
||||
command: echo "{{target}}"
|
||||
exports:
|
||||
target_value: "output"
|
||||
decision:
|
||||
switch: "{{target_value}}"
|
||||
cases:
|
||||
"skip":
|
||||
goto: _end
|
||||
"jump":
|
||||
goto: final-step
|
||||
|
||||
- name: middle-step
|
||||
type: bash
|
||||
command: echo "middle executed"
|
||||
exports:
|
||||
middle_output: "output"
|
||||
|
||||
- name: final-step
|
||||
type: bash
|
||||
command: echo "final executed"
|
||||
exports:
|
||||
final_output: "output"
|
||||
Reference in New Issue
Block a user