<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
<a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
How to assign task to group of user
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/surajaya">surajaya digdaya</a> in <i>Beginner's Corner</i> - <a href="http://community.jboss.org/message/577329#577329">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hello All,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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 :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><blockquote class="jive-quote"><p><code><?xml version="1.0" encoding="UTF-8"?><br/><br/><process-definition  xmlns="urn:jbpm.org:jpdl-3.2"  name="AssignmentTest"><br/><br/><br/>   <start-state name="start-state1"><br/>      <task name="testing" blocking="true"><br/>         <description><br/>            testing<br/>         </description><br/>         <assignment pooled-actors="group(UserRole)"></assignment><br/>         <controller></controller><br/>      </task><br/>      <transition to="task-node1" name="to_task1"></transition><br/>   </start-state><br/><br/><br/>   <task-node name="task-node1"><br/>      <task name="task1" blocking="true"><br/>         <description><br/>            Testing task1<br/>         </description><br/>         <assignment actor-id="user1"></assignment><br/>         <controller></controller><br/>      </task><br/>      <transition to="task-node2" name="to_task2"></transition><br/>   </task-node><br/><br/>   <task-node name="task-node2"><br/>      <task name="task2" blocking="true"><br/>         <description><br/>            Testing task2<br/>         </description><br/>         <assignment actor-id="user2"></assignment><br/>         <controller></controller><br/>      </task><br/>      <transition to="task-node3" name="to_task3"></transition><br/>   </task-node><br/><br/>   <task-node name="task-node3"><br/>      <task name="task3" blocking="true"><br/>         <description><br/>            Testing task3<br/>         </description><br/>         <assignment actor-id="user3"></assignment><br/>         <controller></controller><br/>      </task><br/>      <transition to="task-node4" name="to_task4"></transition><br/>   </task-node><br/><br/>   <task-node name="task-node4"><br/>      <task name="task4" blocking="true"><br/>         <description><br/>            Testing task4<br/>         </description><br/>         <assignment pooled-actors="group(UserRole)"></assignment><br/>         <controller></controller><br/>      </task><br/>      <transition to="end-state1" name="to_end"></transition><br/>   </task-node><br/><br/><br/>   <end-state name="end-state1"></end-state><br/><br/><br/></process-definition></code></p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>and here is my form</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><blockquote class="jive-quote"><p><?xml version="1.0" encoding="UTF-8"?><br/><!DOCTYPE workflow-forms PUBLIC "-//OpenKM//DTD Workflow Forms 1.0//EN"<br/><span>                                "</span><a class="jive-link-external-small" href="http://www.openkm.com/dtd/workflow-forms-1.0.dtd" target="_blank">http://www.openkm.com/dtd/workflow-forms-1.0.dtd</a><span>"></span><br/><workflow-forms><br/>  <workflow-form task="testing"><br/>    <input label="variable1" name="variable1" /><br/>    <button label="Submit" /><br/>  </workflow-form><br/>  <workflow-form task="task1"><br/>    <input label="variable1" name="variable1" /><br/>    <button label="Submit" /><br/>  </workflow-form><br/>  <workflow-form task="task2"><br/>    <input label="variable2" name="variable2" /><br/>    <button label="Submit" /><br/>  </workflow-form><br/>  <workflow-form task="task3"><br/>    <input label="variable3" name="variable3" /><br/>    <button label="Submit" /><br/>  </workflow-form><br/>  <workflow-form task="task4"><br/>    <input label="variable4" name="variable4" /><br/>    <button label="Submit" /><br/>  </workflow-form><br/></workflow-forms></p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>What's probably missing or wrong in my process definition ?.</p><p>Thanks in advance for your help</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>regards,</p><p>surajaya digdaya</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/577329#577329">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>