6 Replies Latest reply on Jul 29, 2007 11:14 AM by Damian Harvey

    Unassign Task

    Damian Harvey Master

      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()