[rules-users] How to call a another drl file from one drl file

David Sinclair dsinclair at chariotsolutions.com
Thu Jul 2 08:42:50 EDT 2009


Michael is correct. You need to add each resource to the knowledgebase
ensuring that functions needed by rules are added before the rules
themselves.

2009/7/2 Anstis, Michael (M.) <manstis1 at ford.com>

>  I believe you will need to add each DRL file into a single RuleBase
> (Drools 4.x terminology; I think KnowledgeBase in 5.0 but I'm a little
> rusty).
>
> Don't forget rules aren't evaluated when "fireAllRules" is called but as
> objects are inserted into WorkingMemory, so all rules need to be compiled
> into a RuleBase before object insertion.
>
>  ------------------------------
> *From:* rules-users-bounces at lists.jboss.org [mailto:
> rules-users-bounces at lists.jboss.org] *On Behalf Of *Amila Silva
> *Sent:* 02 July 2009 11:07
> *To:* rules-users at lists.jboss.org
> *Subject:* [rules-users] How to call a another drl file from one drl file
>
> hi,
>    I have requirement to execute a chain of rules. One rule after another
> and they are reusable.I need to know how to call another drl file from a drl
> file. or in a then part of the
>    a rule.
>
> thanks
> Amila Silva
>
>
>
> _______________________________________________
> 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/20090702/93bbef1f/attachment.html 


More information about the rules-users mailing list