AnsweredAssumed Answered

Dynamic assignment

Question asked by hmartim on Apr 6, 2011
Latest reply on Jun 20, 2011 by frederikheremans1

an excellent extension of the Activiti is the possibility of defining "activiti:assignee" and "activiti:candidateUsers" of a UserTask via a Spring bean operation like "$ {ldapService.findManagerForEmployee (loan)}" or "$ {ldapService.findAllSales ()}".

This allows dynamic definition of resources for a UserTask, similar to the "parametrized Resource/Role" of BPMN 2.0.

However, there are some situations in which resources dynamically retrieved in the creation of UserTask (which are responsible for the task) may change while the task has not yet been assigned or completed. For example, the employee's manager was replaced, so a new person/user is responsable for the task.

Could the engine offer a way to recover the UserTasks whose responsables were defined by a method (Spring Bean)? And still offer a operation, for example, that allow re-run this definition of responsables (or assignee canditateUsers) of these tasks?

Thus, a processing of the application could periodically (or as consequence of some event) trigger the engine to make this update.

Or is there another way to do this update?