AnsweredAssumed Answered

Unclaim task

Question asked by marcgr on May 25, 2011
Latest reply on Sep 5, 2011 by frankee787
Hi guys!!
That's my first post :D. I'm noob on Activiti but I really like it.

So, I'm developing my own explorer and I have a little trouble unclaiming tasks.

That is the way how I claim:
ProcessEngines.getDefaultProcessEngine().getTaskService().claim(myTask.getId(), idUser);

And trying to unclaim I've found in few posts that says "you just need to do: myTask.setAssignee(null)"…
but is not enough. That don't change anything on my database… I tryed doing:
ProcessEngines.getDefaultProcessEngine().getTaskService().addCandidateGroup(myTask.getId(), null);

but it throws an Exception:
org.activiti.engine.ActivitiException: userId and groupId cannot both be null

It seems like doesn't know where to pool it, isn't it?
What I'm doing wrong??