This is an automated email from the ASF dual-hosted git repository.
fjtiradosarti pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-examples.git
The following commit(s) were added to refs/heads/main by this push:
new d25f1f4e5 [Fix #3694] Modifying for each example (#2019)
d25f1f4e5 is described below
commit d25f1f4e5db829f1d30ce889946d1198c75f451e
Author: Francisco Javier Tirado Sarti
<[email protected]>
AuthorDate: Thu Oct 10 11:55:38 2024 +0200
[Fix #3694] Modifying for each example (#2019)
---
.../src/main/resources/foreach.sw.json | 2 +-
.../java/org/kie/kogito/serverless/workflow/examples/ForEachJava.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/foreach.sw.json
b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/foreach.sw.json
index dbd6852ad..b0a5e4212 100644
---
a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/foreach.sw.json
+++
b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/foreach.sw.json
@@ -13,7 +13,7 @@
{
"name": "increase",
"type": "expression",
- "operation": ".item + 1"
+ "operation": "$item + 1"
}
],
diff --git
a/serverless-workflow-examples/sonataflow-fluent/src/main/java/org/kie/kogito/serverless/workflow/examples/ForEachJava.java
b/serverless-workflow-examples/sonataflow-fluent/src/main/java/org/kie/kogito/serverless/workflow/examples/ForEachJava.java
index 52c74e5cf..c1373d352 100644
---
a/serverless-workflow-examples/sonataflow-fluent/src/main/java/org/kie/kogito/serverless/workflow/examples/ForEachJava.java
+++
b/serverless-workflow-examples/sonataflow-fluent/src/main/java/org/kie/kogito/serverless/workflow/examples/ForEachJava.java
@@ -57,7 +57,7 @@ public class ForEachJava {
// then for each element in input names concatenate it with
that message
.next(forEach(".names").loopVar("name").outputCollection(".messages")
// jq expression that suffix each name with the
message retrieved from the file
- .action(call(expr("concat", ".name+.adviceMessage")))
+ .action(call(expr("concat", "$name+.adviceMessage")))
// only return messages list as result of the flow
.outputFilter("{messages}"))
.end().build();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]