Property description

The workflowTransitionTriggers asset defines custom triggers (scripts) that are executed upon a workflow state change.

Tip

You can also configure triggers as in-place configuration, meaning part of a workflow configuration. For more information, see triggers.

Minimal JSON

{
  "workflowKey": "",
  "fromStateKey": "",
  "toStateKey": "",
  "changeUserRelationTypeKey": "",
  "orderNumber": 0
}
{
  "workflowKey": "cust_example_app_workflow",
  "fromStateKey": "cust_example_app_approved",
  "toStateKey": "cust_example_app_draft",
  "changeUserRelationTypeKey": "cust_example_app_contributor",
  "orderNumber": 1000,
  "type": "to_current_user"
}

Nested properties

Properties

PropertyDescriptionValuesMandatory
workflowKeyKey of the workflow the triggers are assigned to.stringYes
fromStateKeyKey of the workflow state where a transition begins.stringYes
toStateKeyKey of the workflow state where a transition ends.stringYes
changeUserRelationTypeKeyKey of the user relation type changed during the workflow state transition.stringYes
orderNumberOrder of the triggers.integerYes
changeToValueUserRelationTypeKeyKey of the new user relation type which value(s) will replace those in changeUserRelationType.stringNo
pipelineKeyKey of the pipeline triggered by the transition.stringNo
typeDefines an action type performed during the workflow state transition. See supported type values.stringNo

Supported type values

ValueDescription
defaultChanges the value of changeUserRelationType based on the value of changeToUserRelationType. If changeToUserRelationType is NULL, changeUserRelationType is also set to NULL during the transition.
select_user_from_allowedSimilar to default, but a user is selected during the transition.
to_current_userChanges the value of changeUserRelationType to the current user, i.e. the user who made the change.