Skip to content

Commit bb28a61

Browse files
committed
Correct WF definition for multiple data filters
Signed-off-by: radtriste <[email protected]>
1 parent e2fb1d7 commit bb28a61

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

specification.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -660,12 +660,12 @@ a workflow with a single event state and show how data filters can be combined.
660660
"functionRef": {
661661
"refName": "greetingFunction",
662662
"arguments": {
663-
"greeting": "${ .spanish } ",
663+
"greeting": "${ .hello.spanish } ",
664664
"customerName": "${ .customerInfo.name } "
665665
}
666666
},
667667
"actionDataFilter": {
668-
"fromStateData": "${ .hello }",
668+
"fromStateData": "${ { hello, customerInfo } }",
669669
"results": "${ .greetingMessageResult }",
670670
"toStateData": "${ .finalCustomerGreeting }"
671671
}
@@ -767,7 +767,7 @@ At this point our state data contains:
767767

768768
```json
769769
{
770-
"hello": {
770+
"hello": {
771771
"english": "Hello",
772772
"spanish": "Hola",
773773
"german": "Hallo",
@@ -790,7 +790,7 @@ At this point our state data contains:
790790
**(3) Event state performs its actions**:
791791
Before the first action is executed, its actionDataFilter is invoked. Its "fromStateData" expression filters
792792
the current state data to select from its data that should be available to action arguments. In this example
793-
it selects the "hello" property from the current state data.
793+
it selects the "hello" and "customerInfo" properties from the current state data.
794794
At this point the action is executed.
795795
We assume that for this example "greetingFunction" returns:
796796

@@ -899,7 +899,7 @@ After merging the state data should be:
899899
}
900900
```
901901

902-
Merging array types should be done by concatenating them into a larger array including unique elements of both arrays.
902+
Merging array types should be done by concatenating them into a larger array including unique elements of both arrays.
903903
To give an example, merging:
904904

905905
```json

0 commit comments

Comments
 (0)