hehe, I didn&#39;t want to fall for the &quot;getting salience values round the wrong way&quot; trap like I normally do.<br><br>Thanks Wolfgang :)<br><br><div class="gmail_quote">2011/7/13 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Ahem,...<div class="im"><br><br>2011/7/13 Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</span><br>
</div><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If you want to use a single XLS decision table then the answer is still, &quot;no it&#39;s not possible&quot;.<br><br>If however you willing\able to use DRL then a world of opportunities is opened to you.<br><br>I believe something like this will work - but wait to be corrected - laune? ;)<br>


<br><span style="font-family: courier new,monospace;">rule &quot;specific 1&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  when</span><br style="font-family: courier new,monospace;">


<span style="font-family: courier new,monospace;">    SomeObject( someSpecificCriteria )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  then</span><br style="font-family: courier new,monospace;">


<span style="font-family: courier new,monospace;">    insert(new Result() );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">end</span><br style="font-family: courier new,monospace;">


<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">rule &quot;generic&quot;</span></blockquote></div><div><br>## ensure this fires only in the absence of any speficic-N rule<br>
salience -100  <br><font color="#888888">
<br>-W<br> </font></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  when</span><br style="font-family: courier new,monospace;">


<span style="font-family: courier new,monospace;">    not Result( )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  then</span><br style="font-family: courier new,monospace;">


<span style="font-family: courier new,monospace;">    insert(new Result() );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">end</span><br style="font-family: courier new,monospace;">


<br>You could (possibly) use two XLS decision tables where the two rules above are effectively defined in each.<br><br>With kind regards,<br><br>Mike<div><div></div><div><br><br><div class="gmail_quote">On 13 July 2011 09:09, Syargey <span dir="ltr">&lt;<a href="mailto:Syargey@tut.by" target="_blank">Syargey@tut.by</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">First I wanted to add parameters from &quot;condition 1&quot; column to a session and<br>
to add condition which makes default rule true if no parameter in session is<br>
equal to an entry argument.<br>
<br>
But I couldn&#39;t find a way to add a parameter from a condition expression to<br>
a session.<br>
<br>
Is it possible?<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/decision-tables-and-default-rules-for-case-when-part-of-LHS-failes-for-other-rules-tp3162872p3165180.html" target="_blank">http://drools.46999.n3.nabble.com/decision-tables-and-default-rules-for-case-when-part-of-LHS-failes-for-other-rules-tp3162872p3165180.html</a><br>



</font><div><div></div><div>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" target="_blank">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>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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></div><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>