I was searching for a way to return a task to the pooled tasks (ie. unassign it).
This works for me and others may find it useful:
| jbpmContext.getTaskMgmtSession().loadTaskInstance(taskId).setActorId(null);
|
where taskId is the id (type long) passed into the method via a request parameter.
Would be handy if you could call setActor on the taskInstance returned from the
taskInstanceList but it returns org.jbpm.taskmgmt.exe.TaskInstance which as it isn't
a Seam component, can't be called from EL. Would be super-handy if you could just call
task.unassign()
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068153#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...