Krishna Ananthoj [
https://community.jboss.org/people/krishna.ananthoj] created the
discussion
"How to auto delegate using jbpm"
To view the discussion, visit:
https://community.jboss.org/message/818562#818562
--------------------------------------------------------------
I have a requirement where I need to auto delegate a task to a delegatee. The business
requirement is to verify in the DB and find out who are the valid delegatees for the
current delegator(actorId) for the current duration.
On node trigger event we need to check for the valid delegatee and auto assign/delegate
this user to the task. We know that Jbpm allows us to do the delegation explicitly using
delegate() method.
We have the valid delegatee information from DB at the time of node triggered but inorder
to delegate the task we need to have the taskId information which is not available in this
node trigger event. This is because, task object might not have been created yet.
public void delegate(*taskId*, userId, targetUserId)
We can't even use taskClaimed event method because it is not getting triggerd in case
where there is single actorId specified for the node(in bpmn). It is because Jbpm directly
moves the node from task 'Created' to 'Reserved' status in this case.
public void taskClaimed(TaskClaimedEvent event)
So, I dont have any idea, how to implement our requirement. Please help us.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/818562#818562]
Start a new discussion in jBPM Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]