[jboss-user] [Beginner's Corner] - How to assign task to group of user

surajaya digdaya do-not-reply at jboss.com
Thu Dec 23 04:35:38 EST 2010


surajaya digdaya [http://community.jboss.org/people/surajaya] created the discussion

"How to assign task to group of user"

To view the discussion, visit: http://community.jboss.org/message/577329#577329

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

Reply to this message by going to Community
[http://community.jboss.org/message/577329#577329]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101223/86688de1/attachment-0001.html 


More information about the jboss-user mailing list