[rules-users] How to fire rules of a specific rule file from ChangeSet

Wolfgang Laun wolfgang.laun at gmail.com
Mon Aug 20 14:29:18 EDT 2012


On 20/08/2012, Rana <ven12344 at yahoo.com> wrote:
> Yes, but I don't want all the rules to fire, right.
>
> You told me the drools will take care of what the rules to fire based on
> the
> request. This is what you told
>
> "
> But a rule (as you have it) with
>    Drug( brandName == "AndroGel" )
> will take care of that automaticaliy. This can co-exist with lots of
> similar rules for anything between "Aspic" to "Zodiac".
>
> "
>
> But it is firing all the rules for AndroGel, Aspic and also Zodiac.

Well, if there are Drug facts with these brandNames inserted in
Working Memory at the same time, that's to be expected.


>
> If the rules are satisfied for AndroGel rule file, then it should stop the
> execution and carry on from the calling method which is fireAllRules().
>
> This is what I want.

Then don't insert many facts at the same time, just one at a time.

-W


>
> Thanks.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-to-fire-rules-of-a-specific-rule-file-from-ChangeSet-tp4019282p4019284.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list