My FNZ Studio Version

Processes

Latest Update: 12.04.2023 |
Recipe
2024
2023
2022.2
2022.1
11
10
9
8

Problem

In some situations, the Appway Process Engine must select one among multiple workitems to be presented to a user. Which are the priority criteria applied to choose one among multiple workitems?

Solution

Terminology note: While the Process Engine works with so-called Process Tokens, when such tokens reach an activity that needs to be executed by a user, these are called Workitems. The algorithm described in this article refers specifically to Workitems. See also: Workitems/Process Tokens.

Situations in which Multiple Workitems are Produced

In some situations, multiple workitems are produced and the Appway Process Engine applies an algorithm to select one among multiple workitems to become active. This happens in the following cases:

  1. When starting a new Process which generates multiple parallel workitems for the same user in the new Process Instance.
  2. When opening a link from the Form /Process/< ProcessInstanceID > and Appway must select one of the workitems in the referenced Process Instance.
  3. When a user has completed a workitem and Appway scans for the next workitem to be presented to the user.

How are Priority Settings Applied

When multiple workitems are present for the same user in the same process, they become active based on the following general criteria (you can check these properties for all current Process Workitems in the Workitems tab under Solution Maintenance > Processes):

  1. Priority property: Higher values have higher priority.
  2. Transient property: Non-transient workitems have higher priority.
  3. Due date property: Workitems with a closer due date indicate higher propriety (workitems with no due date have the lowest priority).
  4. Participant property: Workitems assigned to a user have higher priority than workitems assigned to a group or role.
  5. Created property: Older workitems have higher priority.
  6. Id property: Workitem Ids are ordered alphabetically and the smaller Id has higher priority.

Note that, for the specific case mentioned in point 3 above (when a user has completed a workitem and Appway scans for the next workitem to be presented to the user), an additional criterion is taken into account and this has the highest priority: workitems produced as direct consequence of the completion of the previous workitem are preferred (for example if there is a process flow from the previous task to the a new task).

Related Sources

© 2026 Appway AG. All Rights Reserved