Ayusman Dikshit [http://community.jboss.org/people/ayusman_dikshit] created the 
discussion

"Re: Dynamic parallel executions"

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

--------------------------------------------------------------
Hi Esteban,


here is my business case.

An admin user selects a set of approvers for a particular business decision. 
The selection of the approvers list will happen before the start of the 
workflow, but the number of approvers is NOT constant.


So when the workflow starts, it reads a database value and passes the values to 
the foreach construct like this:...


   <foreach g="203,38,48,48" in="#{users}" name="foreach1" var="user">

      <transition g="-34,-17" name="to PreProcess" to="PreProcess"/>

   </foreach>

   <java class="test.tasks.test1.ProcessJava" g="359,35,92,52" 
method="preProcess" name="PreProcess">

         <arg><object expr="#{user}"/></arg>

      <transition g="-28,-17" name="to userTask" to="userTask"/>

   </java>

   <task g="543,37,92,52" name="userTask" assignee="#{user}">

      <transition g="-76,-18" name="to postProcess" to="postProcess"/>

   </task>

   <java class="test.tasks.test1.ProcessJava" g="542,121,92,52" 
method="postProcess" name="postProcess">

         <arg><object expr="#{user}"/></arg>

      <transition g="-48,-18" name="to merge" to="merge"/>

   </java>

   <join g="565,213,48,48" multiplicity="#{users.size}" name="merge">    

      <transition g="-53,-18" name="to allDone" to="allDone"/>

   </join>


Will this be good enough?


Thanks,

Ayusman
--------------------------------------------------------------

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

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

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to