Hi, 

1           Can I execute rules by specifying the effective date ?

For eg. :-  Like I write a rule and that rule will remain active till the date specified, after that date the rule becomes disabled or inactive.

Yes. You can use date-expires attribute: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html#d4e1976

2           Can I define depending upon the location ?

For eg. :-  I will write rules for different location (like for New York, London ,  Australia) and depending upon the user’s location the corresponding rule gets executed.

You can add the location as an extra restriction of your rules. Or you can use different DRL (created using templates maybe) for different locations. It depends on your particular case.

3           Can I call a rule by name ?

     This must be the most asked question in this mailing list. And the answer is NO. You are not making functions that you can call directly, The inference system is in charge of look for activations and fire the rules.

     

4           Can I execute another rule depending upon some condition in one rule. ( In short can I call one rule from another)

     Again: NO. You can't directly call a rule from another. What you can do inside a rule (RHS) is to insert/modify/retract facts that will cause another rule to get activated and eventually fired.  

 
Best,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


2010/7/8 Pardeep Ruhil <Pardeep.Ruhil@lntinfotech.com>

Hi,

 

I have some doubts related Drools Rule Engine. I have read the documents related to it but still want to confirm some of my doubts

 

Doubts :

1           Can I execute rules by specifying the effective date ?

For eg. :-  Like I write a rule and that rule will remain active till the date specified, after that date the rule becomes disabled or inactive.

2           Can I define depending upon the location ?

For eg. :-  I will write rules for different location (like for New York, London ,  Australia) and depending upon the user’s location the corresponding rule gets executed.

3           Can I call a rule by name ?

4           Can I execute another rule depending upon some condition in one rule. ( In short can I call one rule from another)

 

Please help me clear my doubts.

 

Thanks & Regards

Pradeep Ruhil

 



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.

______________________________________________________________________

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users