...
User substitution involves defining a substitute for a particular user for a given time window. This is particularly useful in BPMN user tasks when the original task assignee becomes unavailable, for instance, goes on vacation. In this case, all the tasks assigned to this user will get delayed until the particular assignee is available again and nobody else will be able to work on these tasks either. To avoid this kind of unnecessary processing delay, you can use the user substitution feature. This means that when a user is not available for a certain period of time, all tasks assigned to that user will be assigned to the defined substitute instead.
How it works
Users are allowed to define a substitute for themselves within the time period that they are going to be unavailable. Once this specified period (substitution period) starts, all the existing tasks of the user are transferred to the substitute (i.e.,bulk reassignment). From this point onwards, any tasks that are going to be assigned to the user will be assigned to the substitute user instead. To the existing tasks for which the particular assignee is a candidate user, the substitute user will also be added as a candidate user.
...
The WSO2 Business Process Server provides REST APIs to add, update and lookup substitution information. Alternatively, you can also use the BPMN-explorer to experience all the facilities provided by substitution APIs.
Enabling user substitution
Open the activiti.xml
file found in the <BPS_HOME>/repository/conf/
directory and uncomment the following configuration.
...
Info | ||
---|---|---|
| ||
Each valid user has permission to add update and view his/her own substitution records and to view the substitution records where he/she acts as a substitute. Viewing and changing substitution records of other users requires the 'substitution' permission. The substitution permission path is as follows.
See Managing Role Permissions for more information on adding permissions. |
...
Adding and managing substitutions
This section guides you through adding, updating and viewing substitutions. You can do this using either the BPMN-explorer user interface or using the substitution APIs.
...