Human task output properties

Reference for the human task output properties that capture user form input and completion button values, enabling output conditions and data passing to downstream tasks.

When a Human task completes, the engine generates a set of output properties. These properties are available to successor tasks in the workflow and can be referenced in output conditions and task parameters using the $this() function.

Output properties

A Human task produces the following output properties:

Property Type Value Notes
completionResult System The value configured on the completion button that the user pressed to submit the form. Always present after task completion. Defaults to accept if no value is configured on the button.
field-name User-defined The value entered by the user in the form field. One property per form field. The key is the Name attribute of the field as configured in the Form editor.
jsonInput System A JSON object containing all form field values as key-value pairs. Always present after task completion. Mirrors the individual user-defined field properties in a single structured object.
Note: The completionResult property defaults to accept when the completion button has no configured value. To drive branching logic based on which button was pressed, configure a distinct value on each button in the Form editor.

Example output properties in a task log

The following example shows the output properties of a Human task after the user filled out a form with two fields (action_type and item_name) and pressed a button configured with the value confirm:

= Output Properties:
=   action_type     : buy
=   item_name       : Gold
=   completionResult: confirm
=   jsonInput       :
{
  "action_type" : "buy",
  "item_name"   : "Gold"
}

Referencing output properties

Use the $this() function to reference output properties of a Human task in output conditions and in the parameters of successor tasks. The following examples use the output properties from the task log example above:

Use case Expression
Output condition based on which button was pressed $this().completionResult = 'confirm'
Output condition based on a form field value $this().action_type = 'buy'
Passing a form field value to a successor task parameter ${jobs.TASK_NAME.item_name}