yes.. sounds more like a normal java problem than Drools FLow problem. I think that your solution is the correct one because it handle internally the multithreaded requierements and then it continue the business process normally.<br>
<br><br><div class="gmail_quote">2010/4/22 Pedro Maria Buitrago Mantilla <span dir="ltr">&lt;<a href="mailto:pmbtgun@gmail.com">pmbtgun@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<span><span style="background-color: rgb(255, 255, 255);" title="La idea es ejecutar varios sub flujos 
independientes.">The idea is to run multiple independent sub flows. </span><span style="background-color: rgb(255, 255, 255);" title="Cada uno de los 
sub flujos requiere, aproximadamente, 2 minutos para terminar, por lo 
cual se requiere procesamiento en paralelo.">Each of the sub flows 
requires approximately 2 minutes to complete, so parallel processing is 
required. </span><span style="background-color: rgb(255, 255, 255);" title="Una vez todos los sub flujos han terminado sus tareas es 
necesario recolectar todos los resultados y procesarlos.">Once all the 
sub flows have completed their tasks is necessary to collect all the 
results and process them. </span><span style="background-color: rgb(255, 255, 255);" title="Lo anterior implica que el workflow no debe terminar
 hasta que se recolecte toda la información entregada por los sub 
flujos.">This implies that the workflow should not end until it collects
 all information submitted by the sub flows.<br><br></span><span style="background-color: rgb(255, 255, 255);" title="Por ahora, yo 
pienso crear, con JMS, una cola en jboss que reciba el nombre de cada 
sub flujo, cree su propio KnowledgeBase, ejecute cada subflow como un 
workflow por separado y entrege los resultados.">For now, I think to 
create, with JMS, a queue in jboss receive the name of each sub flow, 
create your own KnowledgeBase run each subflow as a separate workflow 
and delivers the results. </span><span style="background-color: rgb(255, 255, 255);" title="Finalmente, algun componente tomará todos los 
resultados ( de una base de datos, de otra cola jms ) y los procesará.">Finally,
 some components will take all the results (from a database of another jms queue and process </span></span><span><span style="background-color: rgb(255, 255, 255);" title="Y nuevamente un componente iniciará otro 
flujo de trabajo que procese todos los resultados.">and again another 
component start another workflow to process all results.</span></span><br><br><br clear="all">PEDRO BUITRAGO<br>Bogotá, Colombia<br><br><br><div class="gmail_quote">2010/4/22 Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;</span><div class="im">
<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">can you describe a little bit your use case?<br>I&#39;m not sure about what you want to achieve.<br>


<br><div class="gmail_quote">2010/4/21 Pedro Maria Buitrago Mantilla <span dir="ltr">&lt;<a href="mailto:pmbtgun@gmail.com" target="_blank">pmbtgun@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>In general, I meet that for resolve the topic of multithreading it&#39;s required to implement another thread over a work item.<br>



<br>How does the asynchronic task  can modified a variable of Knowledgebase?<br><br>Can you give me an example?<br><font color="#888888">

<br>Pedro Buitrago<br><br><br>
</font><br></div></div><div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></div></blockquote></div><div><div></div><div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>


 - Salatino &quot;Salaboy&quot; Mauricio -<br>

</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div></div><br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>