<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>