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.

image1

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.

image2

Edit the default.DefaultPerformer. Select Rule-based and specify the ruleset e.g. NamesAndExpressionsRule.

image3

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.

image4

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.

image5

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.

image6

After deployment of the process we can start new instances via the EM.

image7

As a first example I will test it with priority = 2. The task is assigned to TaskGroup1.

image8

As you can see in the trace of the rules the High Priority rule is executed.

image9

And a second example with the priority = 4.

image10

The Low Priority rule is executed. Which means that the task is assigned to taskGroup2.

image11

And the task trace …

image12

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.

Leave a comment