Humantask Assignment: Names and Expressions Assignment via Rules Screenshot 62

Humantask Assignment: Names and Expressions Assignment via Rules

This blog post is part of a series of posts about humantask assignment. You can find the starting point of this series by following the next link.

In this post I will give an example of task assignment by Names And Expressions using Oracle Business Rules. I will use the same BPM process as in most of the other posts in this series.
Screenshot12
Now we have the process, we can assign the task to a representative, group of representatives or role. For this open the taskfile and select the assignment tab.
assignment tab
Edit the default.DefaultPerformer. Select Rule-based and specify the ruleset e.g. NamesAndExpressionsRule.
Screenshot
After selecting OK, the business rules can be specified. Because the process does not have a payload it is not possible to use input data to influence the behavior of the business rules. For this reason I have used priority, one of the many task properties, to control the bussiness rule behavior.
Screenshot-1
The picture below shows the two implemented rules. The first rule “High Priority” assigns the task to taskGroup1 when the priority has the value 1 or 2. The second rule “Low Priority” assigns the task to taskGroup2 when the priority has a value of three or higher.
Screenshot-2
The priority can be set on the General tab of the task. This is during development time. This means that the process must be redeployed when the priority is changed.
Screenshot-3
After deployment of the process we can start new instances via the EM.
Screenshot-4
As a first example I will test it with priority = 2. The task is assigned to TaskGroup1.
Screenshot-5
As you can see in the trace of the rules the High Priority rule is executed.
Screenshot-6
And a second example with the priority = 4.
Screenshot-7
The Low Priority rule is executed. Which means that the task is assigned to taskGroup2.
Screenshot-8
And the task trace …
Screenshot-9
The example shows a very basic implementation of task assignment with the help of Oracle Business Rules. From here you can download the sample project.