Skip to content

Commit

Permalink
[Fix serverlessworkflow#712] Modifying key name as discussed
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Apr 4, 2024
1 parent a6390d3 commit 6003942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ The second way would be to directly filter only the "veggie like" vegetables wit
| fromStateData | Workflow expression that filters state data that can be used by the action | string | no |
| 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 |
| results | Workflow expression that filters the actions data results | string | no |
| 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 |
| 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 |

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

```json
{
"response": "spaghetti"
"fetch_only_pasta_output": "spaghetti"
}
```
In the case action results should not be added/merged to state data, we can set the `useResults` property to `false`.
Expand Down

0 comments on commit 6003942

Please sign in to comment.