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