Set
The Set action sets a value in the State.
If a value exists at the location, the new value overrides the existing value.
The following table shows the parameters for the Set action.
Name | Data type | Required | Notes |
---|---|---|---|
path | JPath | Yes | The location to store the value. |
value | String/Number | Yes | The value to set. |
XML Example:
This action adds the value that is returned by the time() function to the State at location /current_time. If a value exists at that location, it is overwritten.
<Set path="/current_time" value="${time()}" />