Activity variables

Activity variables are properties specifically associated with a workflow activity.

About this task

These are the inputs that appear on the activity definition when a specific activity is dragged onto the workflow canvas. These variables are properties that define, compose or describe the workflow activity, or the work it is designed to perform.

Activity variables are declared in a related list within the Workflow Activity Definition.

To add, view, or modify a variable:


  1. Navigate to Workflow > Activity Definitions.
  2. Select a workflow activity, such as Approval - User.
  3. In the Activity Variables section or tab, add, view, or modify the variables. Activity variables are defined using the same fields as Dictionary records.
    Note: If defining a new activity variable that is dependent on another activity variable, put the prefix "vars." before the name of the parent activity variable. For example, if the child field is dependent on a field named parent, put the value vars.parent in the Dependent field.
    To control the visibility of an activity variable on the workflow canvas after the activity has been dragged to the canvas, use a UI policy on the wf_activity table.
    To access the variables or assign values to these variables within the workflow activity, use the vars variable of the workflow activity.
     activity.vars.variable_name = new_variable_value