2 Replies Latest reply on May 3, 2010 12:44 PM by zzzz mmmm

    Releasing Task to a Group (Swimlane defined)

    zzzz mmmm Newbie



      I have the following process definition:



      <?xml version="1.0" encoding="UTF-8"?>
      <process name="Request Project" xmlns="http://jbpm.org/4.3/jpdl">
          <swimlane name="user-list" candidate-groups="user" candidate-users="mary,alex" />
          <start name="start">
              <transition to="request_project" />
          <task name="request_project" swimlane="user-list">
              <transition to="end" />
          <end name="end" />


      After starting an instance, I can assign the task to a specific user:


      TaskService taskService = processEngine.getTaskService();
      taskService.takeTask("310002", "alex");


      Now I can pickup the task with user "alex" and complete it.


      But I don't want to do it, I want to release the task back to the group, so another person can pick it up.


      How can I do it? I can't seem to find a way of doing it.