cancel
Showing results for 
Search instead for 
Did you mean: 

Manager assigning work item in Activiti

ajjain
Champ in-the-making
Champ in-the-making
I wish to implement a work item assignment app wherein a Manager can assign items to his subordinates. Below are a few cases: 1) Escalate and reassign the item from one subordinate to another 2) Division of work load.

I see TaskService.setAssignee API, can this be used to achieve #2. But how can #1 be implemented?
2 REPLIES 2

ajjain
Champ in-the-making
Champ in-the-making
ny comments??

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi ajjain,

Isn't setAssignee method in TaskService something you are looking for?


  /**
   * Changes the assignee of the given task to the given userId.
   * No check is done whether the user is known by the identity component.
   * @param taskId id of the task, cannot be null.
   * @param userId id of the user to use as assignee.
   * @throws ActivitiObjectNotFoundException when the task or user doesn't exist.
   */
  void setAssignee(String taskId, String userId);