reassigning a suspended task

cancel
Showing results for 
Search instead for 
Did you mean: 
ravenblackdusk
Active Member

reassigning a suspended task

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
bassam_al-saror
Alfresco Employee

Re: reassigning a suspended task

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