[jboss-user] [jBPM] - Re: Delegation of tasks

Thomas Setiabudi do-not-reply at jboss.com
Sun Feb 3 20:17:11 EST 2013


Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion

"Re: Delegation of tasks"

To view the discussion, visit: https://community.jboss.org/message/795823#795823

--------------------------------------------------------------
Hi Roxy,

yes it is possible to delegate task from a user to a group.

1. If the group id is not in the Task's Potential Owner list (seen at database table PeopleAssignment_PotOwners), then you have to nominate that group to the Task's Potential owner first.

There are some ways to do this, if you use the taskClient then here is a sample code:

 BlockingTaskOperationResponseHandler blockingTaskOperationResponseHandler = new BlockingTaskOperationResponseHandler();
  taskClient.nominate(taskId, userLogon, potentialOwners,
    blockingTaskOperationResponseHandler);



where potentialOwners is a list of potential owner (user / group / both) that you want to nominate as the task's potential owner.

2. If the group has been in the Task Potential Owner, but the task status is still "Reserved", that means the user need to release that task in order to make it a group task which can be claimed by any member of the group.

There are some ways to do this, if you use the taskClient then here is a sample code:
BlockingTaskOperationResponseHandler blockingTaskOperationResponseHandler = new BlockingTaskOperationResponseHandler();
  taskClient.release(taskId, userLogon,
    blockingTaskOperationResponseHandler);



Regards,
Thomas Setiabudi
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/795823#795823]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130203/56cb7f6c/attachment-0001.html 


More information about the jboss-user mailing list