[rules-users] logging

Jaroslaw Kijanowski kijanowski at gmail.com
Wed Jun 18 04:29:12 EDT 2008


May be you could store the names of every fired rule in a global by 
putting drools.getRule().getName() into a list on the RHS.
Then you could get all rules in your package ( pkg.getRules() ) into 
another list and "diff" both collections (another_list.removeAll(list) ).


Thalupula Ravi wrote:
> Hi, 
> 
> How can i log that where a rule is executed or not for supplied data? If the
> rule fires, in 'then' section i can have a log statement. 
> 
> How can i log that the rule is not executed??
> 
> I need to log in both scenarios.
> 
> Thanks,
> Ravi Thalupula




More information about the rules-users mailing list