Evaluation of task elements and their replacement variables at runtime

Task elements can be queried by client applications to expose task-related information. The definition of these elements can contain replacement variables. For these variables to be replaced with values at runtime, certain conditions must be met.

For the variable to be replaced by a value, both of the following conditions must be met:
  1. The variables are initialized before the task element is evaluated
  2. The task element is evaluated before the query from the client application
The following table describes which Human Task Manager replacement variables can be considered to be initialized before the completion of specific task-related actions. This allows both replacement variable initialization and task element evaluation to be done in the same task action.
Table 1. Task-related actions and the sequence of evaluation of the task elements and replacement variables
Task-related action Sequence of evaluation
Create a task
  1. Task element: People assignment for potential instance creators is evaluated
    1. Replacement variable: htm:task.potentialInstanceCreators is initialized
  2. Task element: People assignment for potential starters is evaluated
    1. Replacement variable: htm:task.potentialInstanceStarters is initialized
    2. Replacement variable: htm:task.instanceID is initialized
    3. Replacement variable: htm:task.displayName is initialized
    4. Replacement variable: htm:task.property.customPropertyName is initialized
  3. Task element: The task priority is evaluated
    1. Replacement variable: htm:task.originator is initialized
  4. Task element: The task description is evaluated
    1. Replacement variable: htm:task.description is initialized
Start a task
  1. Task element: No elements are evaluated
    1. Replacement variable: htm:input.[part|part\XPath|\XPath] is initialized
  2. Task element: The duration until the task is overdue is evaluated
  3. Task element: The duration until the task expires is evaluated
  4. Task element: People assignment for the administrator role is evaluated
    1. Replacement variable: htm:task.administrators is initialized
  5. Task element: People assignment for potential owners is evaluated
    1. Replacement variable: htm:task.potentialOwners is initialized
  6. Task element: People assignment for editors is evaluated
    1. Replacement variable: htm:task.editors is initialized
  7. Task element: People assignment for readers is evaluated
    1. Replacement variable: htm:task.readers is initialized
    2. Replacement variable: htm:task.starter is initialized
  8. Task element: The custom properties for the task are evaluated
    1. Replacement variable: htm:task.property.customPropertyName is initialized
  9. Task element: The business category is evaluated
  10. Task element: The task priority is evaluated
  11. Task element: The task work basket is evaluated
  12. Task element: The task description is evaluated
    1. Replacement variable: htm:task.description is initialized
An escalation is created No task elements are evaluated. The following replacement variables are initialized:
  • htm:escalation.instanceID
  • htm:escalation.activationState
  • htm:escalation.expectedTaskState
  • htm:escalation.displayName
  • htm:escalation.description
  • htm:escalation.property.customPropertyName
An escalation is activated
  1. Task element: The escalation duration is evaluated
  2. Task element: The escalation properties are evaluated
    1. Replacement variable: htm:escalation.property.customPropertyName is initialized
  3. Task element: The escalation description is evaluated
    1. Replacement variable: htm:escalation.description is initialized or changed
An escalation is triggered
  1. Task element: Escalation receivers are evaluated.
    1. Replacement variable: htm:escalation.receivers is evaluated
    Note that the definition can refer to the escalation receivers of another escalation, for example, it can include a variable like htm:escalation(otherEscalationName).receivers.
  2. Task element: For e-mail notifications, the e-mail subject and body are evaluated
A task reaches an end state
  1. Task element: The duration until deletion of the task is evaluated
This table highlights the constraints that you must observe when specifying Human Task Manager replacement variables for task elements: