As for not duplicating RHS code: There&#39;s DRL functions, which (when returning void) can play the role of old-fashioned procedures.<br>-W<br><br><div class="gmail_quote">2011/7/9 Greg Barton <span dir="ltr">&lt;<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
Rules do not &quot;call&quot; other rules.  A rule can change the value of an object in working memory, and if another rule is triggered by that change (it&#39;s conditions are matched) then that other rule could fire.  This is done without calling the subsequent rule directly.  You do need to notify the rule engine that the object has changed, though, and that&#39;s done in Drools using the update or modify statements in the action portion of the rule.<div>
<br></div><div><a href="http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/html_single/index.html#d0e5906" target="_blank">http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/html_single/index.html#d0e5906</a>  <br>
<br>--- On <b>Sat, 7/9/11, Roger Smith <i>&lt;<a href="mailto:rogersmith1711@gmail.com" target="_blank">rogersmith1711@gmail.com</a>&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<br>From: Roger Smith &lt;<a href="mailto:rogersmith1711@gmail.com" target="_blank">rogersmith1711@gmail.com</a>&gt;<br>Subject: [rules-users] One rule
 calling another rule<br>To: &quot;Rules Users List&quot; &lt;<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>&gt;<br>Date: Saturday, July 9, 2011, 12:27 AM<div class="im"><br>
<br><div><div>I am involved in a project in which one rule needs to call another re-usable rule. Have anyone had experience using Drools to support such cascaded rules? If yes, any pointers as to how to do it? </div>
<div> </div>
<div>Roger</div>
</div><br></div>-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>rules-users mailing list<br><a href="http://mc/compose?to=rules-users@lists.jboss.org" target="_blank">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></div></blockquote></div></td></tr></tbody></table><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>