Expand my Community achievements bar.

Reassigning a task using the Java API

Avatar

Level 3

I am using this quickstart to reassign a task. I already have a process that lets me know which tasks are RUNNING. And I choose one of those tasks and reassign it. But I keep getting this exception:

Task: 1314 was not found, or it is not in the correct state for the operation you are attempting - 
task not reassigned.

What state does a task need to be in before it can be reassigned?
1 Reply

Avatar

Level 10

I faced the same problem.

The issue i found is that: finding the task Id of a running processing using API is not working.

So I did retrieve the Task Id using direct SQL statement and then tried rest of the logic. It works for me.

I will share you the c# method to do this task reassignment which may help you to understand the solution.

Nith