cancel
Showing results for 
Search instead for 
Did you mean: 

Assignment Handler

akakunin
Champ in-the-making
Champ in-the-making
Hi! I wasn't able to find any kind of 'Assignmenthandler' neiver in examples nor in user documentation. Is using custom java-written assignmentHandler (as extension for traditional BPMN 2.0) supported in Activiti?
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
It is planned for the next release (5.0 GA): http://jira.codehaus.org/browse/ACT-211

It will indeed be implemented as an extensions on the BPMN spec.

akakunin
Champ in-the-making
Champ in-the-making
OK, will wait.
Do you think it is also possible to redefine (somehow) how candidate group and candidate user assignment is perfomed?

I will explain - in Activti it is possible to use candidate group or candidate user. Most interesting is candidate group.
I'm currently doing integration with Liferay - and using candidate group alreay allow to assign task to some "Global" role in Liferay - for example to Site Admin.

But, in Liferay most business processes are performed in context of some "group" - Organization or Community. Each group has own roles (like Community Administrator or Organization Owner) and of course user may ave different roles in different groups.

If I will able to "redefine" or "override" standard assignment behavior, in this case it will be possible to use standard BPMN 2.0 sepantic (candidate group) but assign it to specific groups (in this case group will store both - information about group id in liferay and role).

I saw implementation of UserTask class - but looks like it is not supported any handlers, so, I did not found any way to customize this logic. If it is possible - I may create task in the JIRA.

jbarrez
Star Contributor
Star Contributor
I'm not getting the use case completely.
Isn't what you are describing above possible with an assignment handler?

In the method of the assignment handler you would need to call addCandidateUser(); addCandidateGroup(), setAssignee() etc.