[rules-users] One rule calling another rule

Greg Barton greg_barton at yahoo.com
Sat Jul 9 01:39:14 EDT 2011


Rules do not "call" other rules.  A rule can change the value of an object in working memory, and if another rule is triggered by that change (it'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's done in Drools using the update or modify statements in the action portion of the rule.
http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/html_single/index.html#d0e5906  

--- On Sat, 7/9/11, Roger Smith <rogersmith1711 at gmail.com> wrote:

From: Roger Smith <rogersmith1711 at gmail.com>
Subject: [rules-users] One rule calling another rule
To: "Rules Users List" <rules-users at lists.jboss.org>
Date: Saturday, July 9, 2011, 12:27 AM

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? 
 
Roger

-----Inline Attachment Follows-----

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110708/66b35aa5/attachment.html 


More information about the rules-users mailing list