Evaluation of task elements and their replacement variables at run time
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 run time, certain conditions must be met.
For the variable to be replaced by a value, both of the following
conditions must be met:
- The variables are initialized before the task element is evaluated
- 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.
| Task-related action | Sequence of evaluation |
|---|---|
| Create a task |
|
| Start a task |
|
| An escalation is created | No task elements are evaluated. The following
replacement variables are initialized:
|
| An escalation is activated |
|
| An escalation is triggered |
|
| A task reaches an end state |
|
This table highlights the constraints that you must observe when
specifying Human Task Manager replacement variables for task elements:
- A task element should only include replacement variables that
are initialized before the task element is evaluated:
- Replacement variables that are initialized due to an earlier task
action are the replacement variables that are located in rows that
precede the row that contains the task element.
For example, the replacement variable %htm:task.originator% is initialized when a task is created. Therefore, it can be included in the definition of the task element
People assignment for potential owners
that is evaluated when the task instance is started. - Replacement variables that are initialized as part of the same
task action as the task element evaluation, but before the task element
evaluation is done are shown on the same row. As indicated in the
table, for selected task actions (task creation, task update, escalation
activation, escalation timer expiration) an evaluation order is defined
for both task elements and replacement variables. Based on this sequence,
you can see which of the replacement variables are initialized before
a task element is evaluated.
For example, a replacement variable %htm:input.\param1% is initialized when the task starts, but before any of the task elements are evaluated. Therefore it can be included in the definition of the task element
If an evaluation order is not given in a table row, no specific evaluation order is guaranteed for that row.People assignment for potential owners
that is also evaluated during the start of the task instance.
- Replacement variables that are initialized due to an earlier task
action are the replacement variables that are located in rows that
precede the row that contains the task element.
- A task element evaluation can imply the initialization of a corresponding
replacement variable:
- Some task elements have corresponding replacement variables that
can be used by other task elements. For example, the task element
People assignment for potential owners
has a corresponding replacement variable %htm:task.potentialOwners%, that is initialized after the task element is evaluated. This means that task elements can be defined in terms of other task elements.
- Some task elements have corresponding replacement variables that
can be used by other task elements. For example, the task element
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15