Chaining rules, including those in decision tables, can be achieved by using a transient control fact.<br><br>rule &quot;your DRL rule 1&quot;<br>    when<br>        YourObject( field == 1 )<br>    then<br>        insertLogical( new TransientControlFact( &quot;dtable1&quot; );<br>
end<br><br>rule &quot;your DRL rule 2&quot;<br>
    when<br>
        YourObject( field == 2 )<br>
    then<br>
        insertLogical( new TransientControlFact( &quot;dtable2&quot; );<br>
end<br>
<br>Then in the decision table use the transient control fact in an additional column. The DRL would look like this:-<br><br>rule &quot;dtable1 row 1&quot;<br>    when<br>        TransientControlFact( dtable = &quot;dtable1&quot; )<br>
        YourOtherFacts( )<br>    then<br>        ....<br>end<br><br>rule &quot;dtable1 row 2&quot;<br>
    when<br>
        TransientControlFact( dtable = &quot;dtable2&quot; )<br>
        YourOtherFacts( )<br>
    then<br>
        ....<br>
end<br>
<br>How you retrieve the results from the Decision Tables is up to you (e.g. queries, globals etc).<br><br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 10 October 2012 09:34, Manasi <span dir="ltr">&lt;<a href="mailto:manasi.a.damle@capgemini.com" target="_blank">manasi.a.damle@capgemini.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,<br>
<br>
With Drools I need to execute a DRL first and based on its output value I<br>
need to evaluate a decision table in guvnor and get the output values.<br>
<br>
Please let me know how this can be done.<br>
<br>
Thanks,<br>
Manasi<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Evaluating-decision-tables-from-DRL-tp4020192.html" target="_blank">http://drools.46999.n3.nabble.com/Evaluating-decision-tables-from-DRL-tp4020192.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>
</blockquote></div><br>