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.
This post gives an example of task assignment with a Dynamic Approval Group. I will use the same BPM process as in most of the other posts.
The implementation of the Dynamic Approval Group is done in a custom java class that implements the IDynamicApprovalGroup interface.
The following picture shows the implementation of this class for this post. The group consist of the users taskUser1 and taskUser5. This means that one of these users must handle the task.
After creating and compiling the class, It must become available for use. For this copy the class to the following location: /Oracle_SOA1/soa/modules/oracle.soa.ext_11.1.1/classes. You must restart WebLogic Server after you put your class files there.
And of course you must assign the class to the humantask.
And finally you must add the dynamic approval group from the Business Process Workspace. Go to the Administration page. Under Task Administration, select Approval Groups. Click the Add (+) button and select Create Dynamic Approval Group.
Give the group a name and specify the class name. Click Save to finish the step.
After deployment of the process we can start new instances via the EM.
This brings me to the end of this example. The example shows a very simple and straight forward implementation of the Dynamic Approval Group. In a real business implementation you will probably never see a hard coded implementation like this. For example it would be more obvious as the users were loaded from a database table. I will show this in a future post of this series. From here you can download the sample project.