I&#39;m not sure, but it could be that your rules (which is really just one rule) belongs to the same rule-flow-group. So, when the first rule node is executed, the rule-flow-group is activated and the rule get fired. When the second rule node is executed (in the second iteration of your multiple-instance), the rule-flow-group is activated again (actually, it was already active), but since anything has changed since the last execution, no rules will be fired.<div>

One possible solution could be to add a &quot;guard&quot; restriction to your rules. So, inside the subprocess you can insert an instance of this &quot;guard&quot; object before the rule node. You can also even have a rule with low salience to retract this &quot;guard&quot; when you are done. </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">On Wed, Jun 1, 2011 at 6:31 AM, HMandic <span dir="ltr">&lt;<a href="mailto:trbuhom@net.hr">trbuhom@net.hr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Does anyone have a working example of a sub-process with rules, inside a<br>
multiple instances node?<br>
<br>
I can&#39;t get it to work properly.<br>
This sub-process of mine has one script node (that just prints something)<br>
and one rule. Multiple instances node gets a Collection of three elements,<br>
so the sub-process in question should run three times, and it does.<br>
The script node executes three times, as it should, BUT the rule executes<br>
only for the first sub-process, not for the other two!<br>
Just to clarify things - there&#39;s no condition in that rule, just a<br>
System.out.print in RHS.<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Problem-with-sub-process-rules-inside-multiple-instances-tp3009981p3009981.html" target="_blank">http://drools.46999.n3.nabble.com/Problem-with-sub-process-rules-inside-multiple-instances-tp3009981p3009981.html</a><br>


Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</font></blockquote></div><br></div>