[rules-users] Drools-Guvnor doubt regarding firing of rules

Pardeep Ruhil Pardeep.Ruhil at lntinfotech.com
Thu Jul 29 01:10:34 EDT 2010


Hi All,
I have a doubt regarding drools-guvnor, as I am going to use Drools-Guvnor and integrate it with my application.

1.       Can I make two rules with the same name having different date-expires attributes.

Like depending upon the date the corresponding rule fires.

rule "discount"
   date-effective "01-July-2010 12:00:00 AM"
   date-expires "26-July-2010 12:00:00 AM"
 when
<condition for 10% discount>
then
<result>

rule "discount"
   date-effective "01-October-2010 12:00:00 AM"
   date-expires "26-October-2010 12:00:00 AM"
  when
<condition for 20% discount>
 then
                <result>



2.       Can I fire the rule which are expired programmatically?




Thanks & Regards
Pradeep Ruhil
L& T Infotech
Mahape, Vashi
Mumbai


________________________________
This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100729/67b3ce43/attachment.html 


More information about the rules-users mailing list