Hi, <div><br></div><div><p style="margin-left: 57pt; "><span>1<span style="font: normal normal normal 7pt/normal 'Times New Roman'; "> </span></span>Can I execute rules by specifying the effective date ?</p>
<p class="MsoNormal" style="margin-left: 1in; ">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.</p><p class="MsoNormal" style="margin-left: 1in; ">
<font class="Apple-style-span" color="#006600">Yes. You can use </font><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; color: rgb(255, 0, 0); ">date-expires </span><span class="Apple-style-span" style="color: rgb(0, 102, 0); ">attribute: </span><a href="https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html#d4e1976">https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html#d4e1976</a></p>
<p style="margin-left: 57pt; "><span>2<span style="font: normal normal normal 7pt/normal 'Times New Roman'; "> </span></span>Can I define depending upon the location ?</p><p class="MsoNormal" style="margin-left: 1in; ">
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.</p><p class="MsoNormal" style="margin-left: 1in; ">
<font class="Apple-style-span" color="#006600">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.</font></p>
<p style="margin-left: 57pt; "><span>3<span style="font: normal normal normal 7pt/normal 'Times New Roman'; "> </span></span>Can I call a rule by name ?</p><p style="margin-left: 57pt; "> <font class="Apple-style-span" color="#006600">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.</font></p>
<p style="margin-left: 57pt; "> </p><p style="margin-left: 57pt; "><span>4<span style="font: normal normal normal 7pt/normal 'Times New Roman'; "> </span></span>Can I execute another rule depending upon some condition in one rule. ( In short can I call one rule from another)</p>
<p style="margin-left: 57pt; "><span class="Apple-style-span" style="color: rgb(0, 102, 0); "> 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. </span></p>
</div><div> </div><div>Best,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com">http://www.plugtree.com</a> <br>- Blog @ <a href="http://ilesteban.wordpress.com">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">2010/7/8 Pardeep Ruhil <span dir="ltr"><<a href="mailto:Pardeep.Ruhil@lntinfotech.com">Pardeep.Ruhil@lntinfotech.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">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</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Doubts :</p>
<p style="margin-left:57.0pt">
<span>1<span style="font:7.0pt "Times New Roman"">
</span></span>Can I execute rules by specifying the effective date ?</p>
<p class="MsoNormal" style="margin-left:1.0in">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.</p>
<p style="margin-left:57.0pt">
<span>2<span style="font:7.0pt "Times New Roman"">
</span></span>Can I define depending upon the location ?</p>
<p class="MsoNormal" style="margin-left:1.0in">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.</p>
<p style="margin-left:57.0pt">
<span>3<span style="font:7.0pt "Times New Roman"">
</span></span>Can I call a rule by name ?</p>
<p style="margin-left:57.0pt">
<span>4<span style="font:7.0pt "Times New Roman"">
</span></span>Can I execute another rule depending upon some condition in one rule. ( In short can I call one rule from another)</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Please help me clear my doubts.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks & Regards</p>
<p class="MsoNormal">Pradeep Ruhil</p>
<p class="MsoNormal"> </p>
</div>
<br>
<hr>
<font face="Arial" color="Black" size="3">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.<br>
</font>
<br>
______________________________________________________________________<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></div>