<div>Thanks Kris,</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 5/21/08, <b class="gmail_sendername">Kris Verlaenen</b> &lt;<a href="mailto:kris.verlaenen@cs.kuleuven.be">kris.verlaenen@cs.kuleuven.be</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">This is expected behaviour, let me try to explain.</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">By adding the ruleflow-group attribute to your rules, you are stating that these rule should not be executed as normal, but that the order in which these rules should be executed is specified by a ruleflow.&nbsp; Activations&nbsp;will be created for rules&nbsp;that are part of a ruleflow-group, but they will only be executed if the ruleflow-group is activated.&nbsp;To make sure that rules with a ruleflow-group are executed, you must:</font></div>

<div><font face="Arial" size="2">&nbsp;1. Create a ruleflow that specifies when the rules should be activated (using ruleset nodes)</font></div>
<div><font face="Arial" size="2">&nbsp;AND </font></div>
<div><font face="Arial" size="2">&nbsp;2. Start the ruleflow whenever appropriate.&nbsp; My guess is that you are not starting the ruleflow, so the&nbsp;corresponding ruleflow-groups are never activated.&nbsp; You can either start a ruleflow manually in your code (workingMemory.startProcess(&quot;id_of_your_ruleflow&quot;), for example right before calling workingMemory.fireAllRules()), or using a rule (probably with a high salience) with as consequence drools.getWorkingMemory().startProcess(&quot;id_of_your_ruleflow&quot;).</font></div>

<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">It is also normal that all other rules that are not tagged with a ruleflow-group attribute just execute as before, even in the presence of ruleflows, both can be used side by side.</font></div>

<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Kris</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"><span class="q">
<div style="FONT: 10pt arial">----- Original Message ----- </div>
<div style="BACKGROUND: #e4e4e4; FONT: 10pt arial"><b>From:</b> <a title="rogerst@gmail.com" onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rogerst@gmail.com" target="_blank">Roger Tanuatmadja</a> </div>

<div style="FONT: 10pt arial"><b>To:</b> <a title="rules-users@lists.jboss.org" onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a> </div>
</span>
<div><span class="e" id="q_11a0b63c5642d5a5_2">
<div style="FONT: 10pt arial"><b>Sent:</b> Monday, May 19, 2008 9:25 PM</div>
<div style="FONT: 10pt arial"><b>Subject:</b> [rules-users] Re: Ruleflow-group attribute causing rule to not fire</div>
<div><br>&nbsp;</div><br>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">From:&nbsp;&quot;Roger Tanuatmadja&quot; &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rogerst@gmail.com" target="_blank">rogerst@gmail.com</a>&gt;<br>
To:&nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>Date:&nbsp;Mon, 19 May 2008 11:55:19 -0700<br>Subject:&nbsp;Ruleflow-group attribute causing rule to not fire<br>

<div>Hi, </div>
<div>&nbsp;</div>
<div>I am new to both rules engine and Drools. I am currently evaluating Drools 4.0.7 for use in our new project. </div>
<div>Basically I have been writing a bunch of individual rules and things have been fine, the rules that I expected to fire were fired, etc, etc. I then proceeded to investigate rule flows. I started innocently enough i.e. adding the ruleflow-group attribute to some of my rules. I also defined a ruleflow mapping (.rfm). </div>

<div>&nbsp;</div>
<div>I then reran my unit-tests (WITHOUT reading the rules in as rule flows) and some of&nbsp;my rules were no longer firing!!. I added an Agenda Listener to my code and</div>
<div>1. without the ruleflow-group attribute, activations were created, and fired.</div>
<div>2. with the ruleflow-group attribute, activations were created but not fired.</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div>Using the debugger yielded the same logical outcomes i.e. without the ruleflow-group attribute, my breakpoints were hit, but with the attribute specified, none of my breakpoints were hit. </div>
<div>&nbsp;</div>
<div>My question is: Is this behavior expected? And why? Especially since some other rules (with the attribute specified) continued to work.&nbsp;I&#39;ve read the documentations as much as possible, but I am really new to this field so I might not even know what questions to ask either.</div>

<div>&nbsp;</div>
<div>Any help would be greatly appreciated.</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>&nbsp;</div>
<div>Roger</div>
<div>&nbsp;</div>
<div>&nbsp;</div><br></blockquote></div><br></span></div>
<p>
<hr>

<p></p>_______________________________________________<br>rules-users mailing list<span class="q"><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
</span><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<p></p></p></blockquote></div><br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" 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>