Initialize

The Initialize action initializes a value in the State.

If a value exists in the location, the new value does not override the existing value.

Table 1. Initialize action parameters
Name Data type Required Notes
path JPath Yes The location to initialize.
value String/Number Yes The value to set.

XML Example

This action adds the value "1" to the State at location /bookmark, if no value exists at that location. If a value does exist at that location, the action does nothing.

<Initialize path="/bookmark" value="1" />