Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 17. Process Execution Server Configuration
17.1. Assignment rules Link kopierenLink in die Zwischenablage kopiert!
Link kopierenLink in die Zwischenablage kopiert!
Assignment rules are rules executed automatically when a Human Task is created or completed. This mechanism can be used, for example, to assign a Human Task automatically to a particular user of a group or prevent a user from completing a Task if data is missing.
17.1.1. Defining assignment rules Link kopierenLink in die Zwischenablage kopiert!
Link kopierenLink in die Zwischenablage kopiert!
To define assignment rules, do the following:
- Create a file that will contain the rule definition on the Business Central classpath (the recommended location is
$DEPLOY_DIR/standalone/deployments/business-central.war/WEB-INF/classes/
):default-add-task.drl
with the rules to be checked when the Human Task is createddefault-complete-task.drl
with the rules to be checked when the Human Task is completed
- Define the rules in the file.
Example 17.1. The default-add-task.drl
content
If the potential owners of a Human Task will contain the user
Mary
, the task will be automatically assigned to the user mary
.
Example 17.2. The default-complete-task.drl
content
If the potential owners of a Human Task will contain the user
Mary
, the task will be automatically assigned to the user mary
.