Condition node sharing happens if you have the same conditions in the same order, top down - it no longer shares once those conditions branch.

Mark
[EMAIL PROTECTED] wrote:
In my drl file I am going to have a number of rules that all implement the same condition. Is this the right way to do this ? Will condition node sharing be applied automatically ? Thanks


<rule name="provisionSMS">
<parameter identifier="controller">
       <class>mt.com.go.cps.Controller</class>
     </parameter>
<groovy:condition>t.getActionName().equals("provisionSMS")</groovy:condition>
     <groovy:consequence>
</groovy:consequence>
  </rule>
<rule name="provisionSMS2"> <parameter identifier="controller">
       <class>mt.com.go.cps.Controller</class>
     </parameter>
<groovy:condition>t.getActionName().equals("provisionSMS")</groovy:condition>
     <groovy:consequence>
System.out.println(drools.getRuleName() ); </groovy:consequence>
  </rule>

Reply via email to