2 Replies Latest reply on Mar 4, 2008 4:33 PM by Bill Luo

    reassign users to a task instance

    Ricardo Marques Novice

      Hi guys

      Given a task instance I'm trying to reassign that instance to another user, but when i do that all the task instance from that process instance stay assign to that user, instead of just of the one task instance that I specified.

      Where's the code and the process definition:

      TaskInstance taskInstance = jbpmContext.getTaskInstance(this.taskInstanceId);
      
      taskInstance.setActorId(username,true);


      
      <process-definition
       xmlns="urn:jbpm.org:jpdl-3.1" name="holiday-request">
       <swimlane name="initiator">
       <assignment expression="user(grover)"></assignment>
       </swimlane>
       <start-state name="enter request">
       <task name="request entry" swimlane="initiator">
       <controller>
       <variable name="start date" access="read,write,required"></variable>
       <variable name="duration" access="read,write,required"></variable>
       </controller>
       </task>
       <transition name="" to="evaluate request"></transition>
       </start-state>
       <end-state name="end"></end-state>
       <task-node name="evaluate request">
       <task name="entry evaluation" swimlane="initiator">
       <controller>
       <variable name="start date" access="read"></variable>
       <variable name="duration" access="read"></variable>
       <variable name="info" access="read"></variable>
       <variable name="decision"></variable>
       </controller>
       </task>
       <transition name="More info needed" to="give addition info"></transition>
       <transition name="approve/disapprove" to="end"></transition>
       </task-node>
       <task-node name="give addition info">
       <task name="additional info entry" swimlane="initiator">
       <controller>
       <variable name="start date" access="read"></variable>
       <variable name="duration" access="read"></variable>
       <variable name="info"></variable>
       </controller>
       </task>
       <transition name="" to="evaluate request"></transition>
       </task-node>
      </process-definition>
      
      


      help??