[rules-users] Drools: to find out if a rule has been triggered or not in a rule in when clause

Wolfgang Laun wolfgang.laun at gmail.com
Wed Sep 15 12:17:23 EDT 2010


If you set up an event handler for rule firings, you can insert a fact
RuleHasFired( String name ) and use this as an additional pattern in the
"one rule". Make sure not to insert duplicates by keeping track of already
inserted RuleHasFired facts with a certain rule name.

-W

2010/9/15 Shweta Agarwal <shweta.agarwal21 at gmail.com>

> Hi,
>
> In Drools, I have to trigger one rule based on some conditions and also if
> some rules, triggers and some do not trigger at all. I need to find this out
> in the when clause.
>
> Any idea on how to find if a rule has been triggered or not.
>
> Any help will be greatly appreciated.
>
> Thanks,
> Shweta Agarwal
>
> _______________________________________________
> 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/20100915/47508d15/attachment.html 


More information about the rules-users mailing list