From 7a01e5c7736be1596f22914bb1d372d8d0374c6a Mon Sep 17 00:00:00 2001 From: gabriel-farache Date: Fri, 16 Jan 2026 11:36:08 +0100 Subject: [PATCH] Add nextWorkflow to fail-safe to have like to greeting Signed-off-by: gabriel-farache --- .../fail-switch/src/main/resources/fail-switch.sw.yaml | 6 ++++++ .../main/resources/manifests/04-sonataflow_failswitch.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/workflows/fail-switch/src/main/resources/fail-switch.sw.yaml b/workflows/fail-switch/src/main/resources/fail-switch.sw.yaml index 90d88df2..33fea5e0 100755 --- a/workflows/fail-switch/src/main/resources/fail-switch.sw.yaml +++ b/workflows/fail-switch/src/main/resources/fail-switch.sw.yaml @@ -27,6 +27,12 @@ functions: "key":"switch", "value": .switch } + ], + nextWorkflows:[ + { + id:"greeting", + name:"greeting" + } ] } }' diff --git a/workflows/fail-switch/src/main/resources/manifests/04-sonataflow_failswitch.yaml b/workflows/fail-switch/src/main/resources/manifests/04-sonataflow_failswitch.yaml index a70b5a95..c7471853 100755 --- a/workflows/fail-switch/src/main/resources/manifests/04-sonataflow_failswitch.yaml +++ b/workflows/fail-switch/src/main/resources/manifests/04-sonataflow_failswitch.yaml @@ -33,7 +33,7 @@ spec: operation: specs/httpbin.yaml#get type: rest - name: successResult - operation: '{ "result": { "message": "Success", "outputs":[ { "key":"switch", "value": .switch } ] } }' + operation: '{ "result": { "message": "Success", "outputs":[ { "key":"switch", "value": .switch } ], nextWorkflows:[ { id:"greeting", name:"greeting" } ] } }' type: expression start: stateName: ChooseFailOrSuccessOrWait