Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix #3694] Updating documentation #671

Merged
merged 2 commits into from
Oct 16, 2024
Merged

Conversation

fjtirado
Copy link
Contributor

@fjtirado fjtirado commented Oct 4, 2024

$ rather than . should be used for loop variable

Fix apache/incubator-kie-kogito-runtimes#3694

To be merged with apache/incubator-kie-kogito-runtimes#3696

$ rather than . should be used for loop variable
Copy link
Contributor

github-actions bot commented Oct 4, 2024

🎊 PR Preview a9b6165 has been successfully built and deployed. See the documentation preview: https://sonataflow-docs-preview-pr-671.surge.sh

@fjtirado fjtirado requested a review from gmunozfe October 9, 2024 10:39
@@ -239,6 +239,59 @@ In the previous example, a CloudEvent was published when the state transitioned.
data={"gitRepo":"ssh://bitbucket.org/m2k-test","branch":"aaaaaaasssss","token":null,"workspaceId":"b93980cb-3943-4223-9441-8694c098eeb9","projectId":"9b305fe3-d441-48ce-b01b-d314e86e14ec","transformId":"723dce89-c25c-4c7b-9ef3-842de92e6fe6","workflowCallerId":"7ddb5193-bedc-4942-a857-596b31f377ed"}
----

== ForEach state

ForEach `iteratiomParam` should be accessed as a variable, not as a JSON property, since the loop variable is not part of the workflow model the expression is evaluated against. This means that rather than prefixing the variable name with a `.`, it should be prefixed with a `$`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it's needed to clarify that this applies to jq

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think so, since the title mentions jq

@fjtirado fjtirado merged commit c553319 into apache:main Oct 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JsonNodeContext is generating unneeded event for context variables
3 participants