@@ -660,12 +660,12 @@ a workflow with a single event state and show how data filters can be combined.
660
660
"functionRef": {
661
661
"refName": "greetingFunction",
662
662
"arguments": {
663
- "greeting": "${ .spanish } ",
663
+ "greeting": "${ .hello. spanish } ",
664
664
"customerName": "${ .customerInfo.name } "
665
665
}
666
666
},
667
667
"actionDataFilter": {
668
- "fromStateData": "${ . hello }",
668
+ "fromStateData": "${ { hello, customerInfo } }",
669
669
"results": "${ .greetingMessageResult }",
670
670
"toStateData": "${ .finalCustomerGreeting }"
671
671
}
@@ -767,7 +767,7 @@ At this point our state data contains:
767
767
768
768
` ` ` json
769
769
{
770
- "hello": {
770
+ "hello": {
771
771
"english": "Hello",
772
772
"spanish": "Hola",
773
773
"german": "Hallo",
@@ -790,7 +790,7 @@ At this point our state data contains:
790
790
**(3) Event state performs its actions**:
791
791
Before the first action is executed, its actionDataFilter is invoked. Its "fromStateData" expression filters
792
792
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.
794
794
At this point the action is executed.
795
795
We assume that for this example "greetingFunction" returns :
796
796
@@ -899,7 +899,7 @@ After merging the state data should be:
899
899
}
900
900
` ` `
901
901
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.
903
903
To give an example, merging :
904
904
905
905
` ` ` json
0 commit comments