cancel
Showing results for 
Search instead for 
Did you mean: 

reassigning a suspended task

ravenblackdusk
Champ on-the-rise
Champ on-the-rise

Currently TaskService.setAssignee does not allow reassigning a task that belongs to a suspended process instance(since AddIdentityLinkCmd extends NeedsActiveTaskCmd). This is inconvenient for me as I want to be able to reassign all tasks of a user that is to be deleted(regardless of being suspended). One solution might be customizing activiti-engine so that AddIdentitcomyLinkCmd wouldn't extend NeedsActiveTaskCmd.

1. Why does adding an identity link to a task require the task to be active? What pitfalls may I encounter if I make it not to need an active task?

2. Any better solutions are appreciated.

1 REPLY 1

bassam_al-saror
Star Collaborator
Star Collaborator

It is by design that no modifications are allowed to a suspended task.