Skip to content

Getter State

- id: a
  type: setter
  variables:
  - key: x 
    scope: workflow
    mimeType: application/json
    value: Hello World
  transition: b
- id: b
  type: getter
  variables:
  - key: x 
    scope: workflow

GetterStateDefinition

To load variables, use the getter state. See Variables.

Parameter Description Type Required
type Identifies which kind of StateDefinition is being used. In this case it must be set to getter. string yes
id An identifier unique within the workflow to this one state. string yes
log If defined, the workflow will generate a log when it commences this state. See StateLogging. Structured JQ no
metadata If defined, updates the instance's metadata. See InstanceMetadata. Structured JQ no
transform If defined, modifies the instance's data upon completing the state logic. See StateTransforms. Structured JQ no
transition Identifies which state to transition to next, referring to the next state's unique id. If undefined, this state terminates the workflow. string no
catch Defines behaviour for handling of catchable errors. []ErrorCatchDefinition no
variables Defines variables to load. []VariableGetterDefinition yes

VariableGetterDefinition

Parameter Description Type Required
key Variable name. Structured JQ yes
scope Selects the scope to which the variable belongs. If undefined, defaults to instance. See Variables. yes no
as Names the resulting data. If left unspecified, the key will be used instead. string no