<br>&nbsp;&nbsp; &nbsp; The usual way to model that in production rules is to have each of your scores calculated in distinct rules,&nbsp; and have a rule with a lower salience to check the total scoring and decide if it should fire or not.<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp; Another way to model this is to have support for uncertainty reasoning. Davide Sottara, a PhD student from Italy, is working on uncertainty reasoning for Drools, but his research is not ready for productization yet.<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/11/6 Waleed Zedan <span dir="ltr">&lt;<a href="mailto:wzedan@gmail.com">wzedan@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hi,<br><br>We are in the process of evaluating JBOSS Drools for our software and so far Drools found to be a perfect match for most of our requirements.<br><br>Recently our customer has requested for a very interesting and important requirement and its synopysis is given below<br>

<br>Rule<br>&nbsp;&nbsp;&nbsp; LHS <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Condition 1 / Condition Group 1&nbsp;&nbsp;&nbsp; (assoicated weightage is 20)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Condition 2 / Condition Group 2&nbsp;&nbsp;&nbsp; (assoicated weightage is 50)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Condition 3 / Condition Group 3&nbsp;&nbsp;&nbsp; (assoicated weightage is 30) <br>

<br>&nbsp;&nbsp;&nbsp; RHS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rule Action / Output<br><br>While calling the Rule Engine, the Rule Engine client will say &quot;Give me all the Rule Output for the Rules matching 50% of the LHS&quot;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i.e. We need to know the percentage of LHS match in the RHS<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Using this percentage, we will call the Rule Action / Output <br>Sample:<br>&nbsp;<br>if Condition 2 / Condition Group 2&nbsp; and Condition 1 / Condition Group 1 are satisfied, then we need to have 70% (50% + 20%) match in the RHS.<br>

<br>Thanks a lot for your help and time.<br>-- <br>Waleed Zedan<br>
SCJP 1.4 , CCNA<br>
</div>
<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><br clear="all"><br>-- <br> &nbsp;Edson Tirelli<br> &nbsp;JBoss Drools Core Development<br> &nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>