-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KOGITO-9324] - Testing CLI + Operator using serverless-workflow-fore…
…ach-quarkus (#1687) * [KOGITO-9324] - Testing Operator using serverless-workflow-foreach-quarkus * [KOGITO-9324]-Added yaml file to Operator * Apply suggestions from code review Co-authored-by: Tristan Radisson <[email protected]> * [KOGITO-9324]- Updated README and json * [KOGITO-9324]- Updated sonataflow * Fix spec version Co-authored-by: Francisco Javier Tirado Sarti <[email protected]> --------- Co-authored-by: Tristan Radisson <[email protected]> Co-authored-by: Ricardo Zanini <[email protected]> Co-authored-by: Francisco Javier Tirado Sarti <[email protected]>
- Loading branch information
1 parent
c8c8ac7
commit a286988
Showing
3 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
...workflow-examples/serverless-workflow-foreach-quarkus/operator/01-sonataflow_foreach.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
apiVersion: sonataflow.org/v1alpha08 | ||
kind: SonataFlow | ||
metadata: | ||
annotations: | ||
sonataflow.org/description: An example of how to use for each state | ||
sonataflow.org/expressionLang: jq | ||
sonataflow.org/profile: dev | ||
sonataflow.org/version: "" | ||
creationTimestamp: null | ||
labels: | ||
app: foreach | ||
name: foreach | ||
namespace: operatordemo | ||
spec: | ||
flow: | ||
functions: | ||
- name: printMessage | ||
operation: sysout | ||
type: custom | ||
- name: increase | ||
operation: .item + 1 | ||
type: expression | ||
start: | ||
stateName: start | ||
states: | ||
- actions: | ||
- actionDataFilter: | ||
useResults: true | ||
functionRef: | ||
invoke: sync | ||
refName: increase | ||
name: increase | ||
- actionDataFilter: | ||
useResults: true | ||
functionRef: | ||
arguments: | ||
message: .item | ||
invoke: sync | ||
refName: printMessage | ||
name: printAction | ||
end: | ||
terminate: true | ||
inputCollection: .input | ||
iterationParam: item | ||
mode: parallel | ||
name: start | ||
outputCollection: .output | ||
stateDataFilter: | ||
output: '{output: .output}' | ||
type: foreach | ||
resources: {} | ||
status: | ||
address: {} | ||
lastTimeRecoverAttempt: null |
2 changes: 1 addition & 1 deletion
2
...-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/foreach.sw.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters