Skip to content

Commit 6003942

Browse files
committed
[Fix #712] Modifying key name as discussed
1 parent a6390d3 commit 6003942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specification.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ The second way would be to directly filter only the "veggie like" vegetables wit
439439
| fromStateData | Workflow expression that filters state data that can be used by the action | string | no |
440440
| useResults | If set to `false`, action data results are not added/merged to state data. In this case 'results' and 'toStateData' should be ignored. Default is `true`. | boolean | no |
441441
| results | Workflow expression that filters the actions data results | string | no |
442-
| toStateData | Workflow expression that selects a state data element to which the action results should be added/merged into. If not specified denotes the top-level state data element. In case it is not specified and the result of the action is not an object, that result should be merged as value of `response` key. If that `response` key already exist in the model, its value will be overwritten. | string | no |
442+
| toStateData | Workflow expression that selects a state data element to which the action results should be added/merged into. If not specified denotes the top-level state data element. In case it is not specified and the result of the action is not an object, that result should be merged as value of an automatically generated key. That key name will be the result of concatenating the action name with `_output` suffix. | string | no |
443443

444444
<details><summary><strong>Click to view example definition</strong></summary>
445445
<p>
@@ -583,7 +583,7 @@ Since there is not `toStateData` and the result is not a json object but an stri
583583

584584
```json
585585
{
586-
"response": "spaghetti"
586+
"fetch_only_pasta_output": "spaghetti"
587587
}
588588
```
589589
In the case action results should not be added/merged to state data, we can set the `useResults` property to `false`.

0 commit comments

Comments
 (0)