Skip to content

Commit

Permalink
Apply Kalyanis suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kalyani Desai <[email protected]>
  • Loading branch information
domhanak and kaldesai authored Mar 14, 2024
1 parent a0a1d4a commit 632a8c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ JQ expression might be tricky to master, for non trivial cases, it is recommende
[[ref-example-jq-expression-function]]
== Example of jq expression in functions

Expressions can be used in functions of type `expression` to manipulate the workflow model. As with any other function, the result of the expression evaluation will be merged into the model
Expressions can be used in functions of type `expression` to manipulate the workflow model. As with any other function, the result of the expression evaluation will be merged into the model.

For example, in the link:{kogito_sw_examples_url}/serverless-workflow-expression-quarkus[`serverless-workflow-expression-quarkus`] example application, a max function adds to the model two properties: `max`, containing the maximum value of `x` coordinate in the `numbers` array (which is a workflow input parameter) and `min`, containing the minimum value of `y` coordinate

Expand Down Expand Up @@ -253,7 +253,7 @@ So, assuming you have added to your `application.properties` a line with the `my
}
----

`$SECRET` always returns a value of type string. If you want to use it in a comparison with a value that is not a string, you need to perform the conversion explicitly. In the next example, the `retries` property is a number, so we need to convert the property value accordingly by calling the `tonumber` built-in jq function.
`$SECRET` always returns a value of type string. If you want to use it in a comparison with a value that is not a string, you must perform the conversion explicitly. In the next example, the `retries` property is a number, so we need to convert the property value accordingly by calling the `tonumber` built-in jq function.

[source,json]
----
Expand Down

0 comments on commit 632a8c0

Please sign in to comment.