One simple solution would be to define a boolean output variable in your sub-process. When you use the sub-process in a bigger process you can map the boolean output to a process variable and connect a Gateway to the sub-process that evaluates the variable. <div>
You can emulate this behavior using events as well. Define a throw event node in your sub-process and attach a boundary event to it in the parent process. </div><div><br></div><div>Best Regards. <br clear="all"><br>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">2012/2/2 George Georgovassilis <span dir="ltr"><<a href="mailto:g.georgovassilis@gmail.com">g.georgovassilis@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello list,<br><br>I modeled (v5.3) a reusable sub-process which can either finish in a desired state (i.e. validations ok) or an undesired state (some validations failed and I need to route to a different flow). Ideally the sub-process would allow for two outgoing connections, but as far as I see that is currently not possible. Can anybody advise on how to achieve a similar functionality?<br>
<br>Is there a chance I could build a workitem that extends the reusable sub-process but allows for two exit connections, and if yes, how?<br><br>Can signals or fault nodes achieve a similar effect and if yes, then how?<br>
<br>Thanks in advance,<br>G.<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></div>