Skip to content

Commit

Permalink
Update serverless-workflow-examples/serverless-workflow-subflows-even…
Browse files Browse the repository at this point in the history
…t/README.md

Co-authored-by: Gonzalo Muñoz <[email protected]>
  • Loading branch information
fjtirado and gmunozfe committed May 14, 2024
1 parent e3d6792 commit 430e65c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# serverless-workflow-subflow-events

This example illustrate how to trigger workflows manually with additional parameters calculated by an initial workflow.
The workflow that initially setup the parameters is executed as start state.
The workflow responsible for setting up the parameters is executed as the start state.
Then, all possible workflows that might be instantiated with those parameters are registered using `event` state. `exclusive` property is set to false ensuring that the process instance remains active till all possible workflows has been executed.

## Execution steps.
Expand Down Expand Up @@ -33,15 +33,14 @@ We need to write down the id returned by the previous steps and invoke `workflow
curl --location 'http://localhost:8080/executeA' \
--header 'Content-Type: application/json' \
--data '{
"id" : "1",
"id" : "1",
"specversion" : "1.0",
"type" : "executeA",
"source" : "manual",
"data" : {
"data" : {
"param4" : "Additional parameter"
},
"kogitoprocrefid" : "ad7e1081-3f05-431e-b246-d9471643fec2"
},
"kogitoprocrefid" : "ad7e1081-3f05-431e-b246-d9471643fec2"
}'
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
# specific language governing permissions and limitations
# under the License.

quarkus.devservices.enabled=false
#

mp.messaging.incoming.executeA.connector=quarkus-http
mp.messaging.incoming.executeA.path=/executeA

Expand All @@ -30,4 +27,6 @@ mp.messaging.incoming.executeB.path=/executeB
%container.quarkus.container-image.push=false
%container.quarkus.container-image.group=${USER}
%container.quarkus.container-image.registry=dev.local
%container.quarkus.container-image.tag=1.0-SNAPSHOT
%container.quarkus.container-image.tag=1.0-SNAPSHOT

quarkus.devservices.enabled=false

0 comments on commit 430e65c

Please sign in to comment.