In an ideal world you should not normally need to think about sequencing the order of rule execution. I suspect you are thinking &quot;procedurally&quot;.<br><br>The &quot;WHEN&quot; part of a rule is evaluated as Facts are inserted into Working Memory. This causes Activations for the &quot;THEN&quot; part to appear on an Agenda (schedule).<br>
<br>When you call &quot;fireAllRules&quot; the Activations on the Agenda are executed. If an Activation causes a change to the Facts is Working Memory rules&#39; &quot;WHEN&quot; parts are re-evaluated and either new Activations added to the Agenda (e.g. if you modify an existing Fact, insert a new one etc), or possibly other existing Activations removed (e.g. if you retract a Fact or a change causes a previous match to no-longer be valid). There is a nice flow-chart in the Drools Expert documentation explaining this and Truth Maintenance.<br>
<br>Production Rule Systems are meant to be used such that you place all your Knowledge (Facts) into its Working Memory and after a bit of churning your results appear :)<br><br>If however you really need to order the execution of the Activations you can use Salience, Agenda Groups or a Process Flow (and possibly others, I forget).<br>
<br>jBPM is now the de-facto Process Engine integrating with Drools. Rule Flow was jBPM&#39;s predecessor and AFAIK should be considered deprecated.<br><br>There are others much more qualified on this forum to suggest best practice and the comment on the pit-falls of trying to sequence rules&#39; execution.<br>
<br>Hopefully they can also give you some advice.<br><br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 16 May 2012 10:27, San <span dir="ltr">&lt;<a href="mailto:sangram.jy@gmail.com" target="_blank">sangram.jy@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mike<br>
<br>
I am working along with Zeeshan and Aswin. I hav started exploring drools a<br>
month back n finished 3 products  one using the .drl rule and two using<br>
decision table. They have joined while exploring guvner just 2 days back n<br>
we have raised that bug.<br>
<br>
But nw we have a new requirement , for which i posted under *&quot;How to control<br>
the order of rule execution&quot;*.<br>
<br>
I am also started explorin jBPM since the rule flow file which I uploaded is<br>
nt able to open in guvnor.<br>
<br>
Pz suggest us a way hw to proceed for the same in drools.<br>
<br>
<br>
Sangram<br>
Java Developer, India<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-can-t-put-formula-on-Guvnor-screen-tp3987830p3996746.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-can-t-put-formula-on-Guvnor-screen-tp3987830p3996746.html</a><br>

<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br>