4 Replies Latest reply on Dec 27, 2010 4:44 AM by surajaya digdaya

    How to assign task to group of user

    surajaya digdaya Newbie

      Hello All,

       

      I'm new to Jboss and JBPM, currently trying workflow in Jboss 4.2.3 with JBPM 3.3.1GA. Here is the process definition that I'm trying to run, a very simple process just to test the task assignment :

       

       

      <?xml version="1.0" encoding="UTF-8"?>

      <process-definition  xmlns="urn:jbpm.org:jpdl-3.2"  name="AssignmentTest">


         <start-state name="start-state1">
            <task name="testing" blocking="true">
               <description>
                  testing
               </description>
               <assignment pooled-actors="group(UserRole)"></assignment>
               <controller></controller>
            </task>
            <transition to="task-node1" name="to_task1"></transition>
         </start-state>


         <task-node name="task-node1">
            <task name="task1" blocking="true">
               <description>
                  Testing task1
               </description>
               <assignment actor-id="user1"></assignment>
               <controller></controller>
            </task>
            <transition to="task-node2" name="to_task2"></transition>
         </task-node>

         <task-node name="task-node2">
            <task name="task2" blocking="true">
               <description>
                  Testing task2
               </description>
               <assignment actor-id="user2"></assignment>
               <controller></controller>
            </task>
            <transition to="task-node3" name="to_task3"></transition>
         </task-node>

         <task-node name="task-node3">
            <task name="task3" blocking="true">
               <description>
                  Testing task3
               </description>
               <assignment actor-id="user3"></assignment>
               <controller></controller>
            </task>
            <transition to="task-node4" name="to_task4"></transition>
         </task-node>

         <task-node name="task-node4">
            <task name="task4" blocking="true">
               <description>
                  Testing task4
               </description>
               <assignment pooled-actors="group(UserRole)"></assignment>
               <controller></controller>
            </task>
            <transition to="end-state1" name="to_end"></transition>
         </task-node>


         <end-state name="end-state1"></end-state>


      </process-definition>

       

      and here is my form

       

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE workflow-forms PUBLIC "-//OpenKM//DTD Workflow Forms 1.0//EN"
                                      "http://www.openkm.com/dtd/workflow-forms-1.0.dtd">
      <workflow-forms>
        <workflow-form task="testing">
          <input label="variable1" name="variable1" />
          <button label="Submit" />
        </workflow-form>
        <workflow-form task="task1">
          <input label="variable1" name="variable1" />
          <button label="Submit" />
        </workflow-form>
        <workflow-form task="task2">
          <input label="variable2" name="variable2" />
          <button label="Submit" />
        </workflow-form>
        <workflow-form task="task3">
          <input label="variable3" name="variable3" />
          <button label="Submit" />
        </workflow-form>
        <workflow-form task="task4">
          <input label="variable4" name="variable4" />
          <button label="Submit" />
        </workflow-form>
      </workflow-forms>

       

      I succesfully deploy that process definition to JBPM, but it turn out that only task :  task1, task2, task3 is assigned to the user. Other task (testing and task4) that should be done by group of user is not assigned.

       

      What's probably missing or wrong in my process definition ?.

      Thanks in advance for your help

       

      regards,

      surajaya digdaya