@@ -166,7 +166,7 @@ Which is added to the states data and becomes the workflow data output.
166
166
}
167
167
},
168
168
"actionDataFilter" : {
169
- "dataResultsPath " : " ${ .greeting }"
169
+ "results " : " ${ .greeting }"
170
170
}
171
171
}
172
172
],
@@ -197,7 +197,7 @@ states:
197
197
arguments :
198
198
name : " ${ .person.name }"
199
199
actionDataFilter :
200
- dataResultsPath : " ${ .greeting }"
200
+ results : " ${ .greeting }"
201
201
end : true
202
202
` ` `
203
203
@@ -243,20 +243,20 @@ Note that in the workflow definition you can see two filters defined. The event
243
243
``` json
244
244
{
245
245
"eventDataFilter" : {
246
- "dataOutputPath " : " ${ .data.greet } "
246
+ "data " : " ${ .data.greet } "
247
247
}
248
248
}
249
249
```
250
250
251
- which is triggered when the greeting event is consumed. It extracts its "data.greet" of the event and
252
- merges it with the states data.
251
+ which is triggered when the greeting event is consumed. It extracts its "data.greet" of the event data (payload) and
252
+ merges it with the state data.
253
253
254
254
The second, a state data filter, which is defined on the event state itself:
255
255
256
256
``` json
257
257
{
258
258
"stateDataFilter" : {
259
- "dataOutputPath " : " ${ .payload.greeting }"
259
+ "output " : " ${ .payload.greeting }"
260
260
}
261
261
}
262
262
```
@@ -310,7 +310,7 @@ filters what is selected to be the state data output which then becomes the work
310
310
"onEvents" : [{
311
311
"eventRefs" : [" GreetingEvent" ],
312
312
"eventDataFilter" : {
313
- "dataOutputPath " : " ${ .data.greet }"
313
+ "data " : " ${ .data.greet }"
314
314
},
315
315
"actions" :[
316
316
{
@@ -324,7 +324,7 @@ filters what is selected to be the state data output which then becomes the work
324
324
]
325
325
}],
326
326
"stateDataFilter" : {
327
- "dataOutputPath " : " ${ .payload.greeting }"
327
+ "output " : " ${ .payload.greeting }"
328
328
},
329
329
"end" : true
330
330
}
@@ -355,14 +355,14 @@ states:
355
355
- eventRefs :
356
356
- GreetingEvent
357
357
eventDataFilter :
358
- dataOutputPath : " ${ .data.greet }"
358
+ data : " ${ .data.greet }"
359
359
actions :
360
360
- functionRef :
361
361
refName : greetingFunction
362
362
arguments :
363
363
name : " ${ .greet.name }"
364
364
stateDataFilter :
365
- dataOutputPath : " ${ .payload.greeting }"
365
+ output : " ${ .payload.greeting }"
366
366
end : true
367
367
` ` `
368
368
@@ -438,7 +438,7 @@ result of the workflow execution.
438
438
}
439
439
],
440
440
"stateDataFilter" : {
441
- "dataOutputPath " : " ${ .results }"
441
+ "output " : " ${ .results }"
442
442
},
443
443
"end" : true
444
444
}
@@ -470,7 +470,7 @@ states:
470
470
arguments :
471
471
expression : " ${ .singleexpression }"
472
472
stateDataFilter :
473
- dataOutputPath : " ${ .results }"
473
+ output : " ${ .results }"
474
474
end : true
475
475
` ` `
476
476
@@ -892,7 +892,7 @@ The data output of the workflow contains the information of the exception caught
892
892
}
893
893
],
894
894
"stateDataFilter": {
895
- "dataOutputPath ": "${ .exceptions }"
895
+ "output ": "${ .exceptions }"
896
896
},
897
897
"transition": "ApplyOrder",
898
898
"onErrors": [
@@ -960,7 +960,7 @@ states:
960
960
arguments:
961
961
order: "${ .order }"
962
962
stateDataFilter:
963
- dataOutputPath : "${ .exceptions }"
963
+ output : "${ .exceptions }"
964
964
transition: ApplyOrder
965
965
onErrors:
966
966
- error: Missing order id
@@ -1060,7 +1060,7 @@ In the case job submission raises a runtime error, we transition to a SubFlow st
1060
1060
}
1061
1061
},
1062
1062
"actionDataFilter": {
1063
- "dataResultsPath ": "${ .jobuid }"
1063
+ "results ": "${ .jobuid }"
1064
1064
}
1065
1065
}
1066
1066
],
@@ -1071,7 +1071,7 @@ In the case job submission raises a runtime error, we transition to a SubFlow st
1071
1071
}
1072
1072
],
1073
1073
"stateDataFilter": {
1074
- "dataOutputPath ": "${ .jobuid }"
1074
+ "output ": "${ .jobuid }"
1075
1075
},
1076
1076
"transition": "WaitForCompletion'"
1077
1077
},
@@ -1100,12 +1100,12 @@ In the case job submission raises a runtime error, we transition to a SubFlow st
1100
1100
}
1101
1101
},
1102
1102
"actionDataFilter": {
1103
- "dataResultsPath ": "${ .jobstatus }"
1103
+ "results ": "${ .jobstatus }"
1104
1104
}
1105
1105
}
1106
1106
],
1107
1107
"stateDataFilter": {
1108
- "dataOutputPath ": "${ .jobstatus }"
1108
+ "output ": "${ .jobstatus }"
1109
1109
},
1110
1110
"transition": "DetermineCompletion"
1111
1111
},
@@ -1190,12 +1190,12 @@ states:
1190
1190
arguments:
1191
1191
name: "${ .job.name }"
1192
1192
actionDataFilter:
1193
- dataResultsPath : "${ .jobuid }"
1193
+ results : "${ .jobuid }"
1194
1194
onErrors:
1195
1195
- error: "*"
1196
1196
transition: SubmitError
1197
1197
stateDataFilter:
1198
- dataOutputPath : "${ .jobuid }"
1198
+ output : "${ .jobuid }"
1199
1199
transition: WaitForCompletion
1200
1200
- name: SubmitError
1201
1201
type: subflow
@@ -1214,9 +1214,9 @@ states:
1214
1214
arguments:
1215
1215
name: "${ .jobuid }"
1216
1216
actionDataFilter:
1217
- dataResultsPath : "${ .jobstatus }"
1217
+ results : "${ .jobstatus }"
1218
1218
stateDataFilter:
1219
- dataOutputPath : "${ .jobstatus }"
1219
+ output : "${ .jobstatus }"
1220
1220
transition: DetermineCompletion
1221
1221
- name: DetermineCompletion
1222
1222
type: switch
@@ -2358,7 +2358,7 @@ For this example we assume that the workflow instance is started given the follo
2358
2358
"resultEventRef": "VetAppointmentInfo"
2359
2359
},
2360
2360
"actionDataFilter": {
2361
- "dataResultsPath ": "${ .appointmentInfo }"
2361
+ "results ": "${ .appointmentInfo }"
2362
2362
},
2363
2363
"timeout": "PT15M"
2364
2364
}
@@ -2395,7 +2395,7 @@ states:
2395
2395
data: "${ .patientInfo }"
2396
2396
resultEventRef: VetAppointmentInfo
2397
2397
actionDataFilter:
2398
- dataResultsPath : "${ .appointmentInfo }"
2398
+ results : "${ .appointmentInfo }"
2399
2399
timeout: PT15M
2400
2400
end: true
2401
2401
` ` `
@@ -3126,7 +3126,7 @@ the data for an hour, send report, and so on.
3126
3126
}
3127
3127
],
3128
3128
"eventDataFilter": {
3129
- "dataOutputPath ": "${ .readings }"
3129
+ "data ": "${ .readings }"
3130
3130
}
3131
3131
}
3132
3132
],
@@ -3208,7 +3208,7 @@ states:
3208
3208
- functionRef:
3209
3209
refName: LogReading
3210
3210
eventDataFilter:
3211
- dataOutputPath : "${ .readings }"
3211
+ data : "${ .readings }"
3212
3212
end: true
3213
3213
- name: GenerateReport
3214
3214
type: operation
0 commit comments