cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Delegation without assigning task

vndube
Champ in-the-making
Champ in-the-making
Hi,

We have requirements of auti delegation of task from one human task step to another one [human task].
E.g. If creator creates a product it gets forwarded to Review Task where a reviewer will perform review. When it is forwarded to review task, basically it does not get assigned to any reviewer. It just gets transfer to review task and get into review queue. Any reviewer can pick [claim] it up from this review task queue. Now here we want an auto delegation from review task queue which may go back to creator or create task queue if the particual worflow state is idle for some time e.g. one day [no reviewer claims task for one day].
I just want to answer it how this can be achieved in Activiti.


Thanks in advance.

V

5 REPLIES 5

frederikherema1
Star Contributor
Star Contributor
You can add a boundary timer event on the user-task that is waiting in the queue. When a specified timeout is reached, it will trigger and you can, for example, have a new task appear assigned to the creator, informing about the timout. See: file:///Users/fheremans/git/Activiti/userguide/target/html/en/index.html#bpmnTimerBoundaryEvent

This creates a new task, off course. If you want to "delegate" the existing task to another user, without ending it, you should add "cancelActivity=false" to the timer-boundary-event. The timer than goes to a service-task in which you query for the task and update the assignee by using our API.

javac
Champ in-the-making
Champ in-the-making
We have another problem pointing in the same direction: We want to start the timer, when some user claims the user task. We want to use that to unclaim after let's say 3 days. If we use the timer-boundary-event from this example, the timer starts if the execution arrives at the user task !!that has no assignee yet!!. If someone claims the user task after 2 days and 23 hours, he will have only one hour left to complete the task 😕 How can we manage to reset the timer on "claim-event"?

trademak
Star Contributor
Star Contributor
Correct, that's the current behaviour of the timer event. I think it would be a nice feature to also allow the timer to start at claim time, could you raise a JIRA issue for this?

Best regards,

javac
Champ in-the-making
Champ in-the-making
Thanks for your answer. Yes I also think it would be a nice feature. Do I need an account or something for this JIRA something? Smiley Wink

javac
Champ in-the-making
Champ in-the-making
I created an issue for that. Thanks!!