[rules-users] Logging Rules Fired on a Fact -- Best Practices
Is there a way to log what rules have interacted with a fact -- and keep the logging with the fact? What are the best practices for that? For example, facts are unmarshalled from an XML stream: important_fact foobar/foo /important_fact Then my rules interact with it: rule my rule no-loop true dialect mvel when i : important_fact() then i.setFoo(fee); end rule my second rule no-loop true dialect mvel when i : important_fact( foo = fee ) then i.setFoo(i.getFoo + foo); end Then I'm thinking I'd like the marshalled output to be something like this (except maybe with unique rule IDs instead of just names): important_fact foofeefoo/foo rule_history rulemy rule/rule rulemy second rule/rule /rule_history /important_fact But I'm pretty new at this. Is that ever done? If so, what are the best practices? If not, maybe there's a good reason, so why not? -- View this message in context: http://drools.46999.n3.nabble.com/Logging-Rules-Fired-on-a-Fact-Best-Practices-tp4019054.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Logging Rules Fired on a Fact -- Best Practices
Create an AgendaEventListener and let it listen to BeforeActivationFiredEvent. The passed ActivationEvent contains a reference to an Activation object, from which you getObjects all participating fact objects. Now it depends whether your important facts all implement the interface RuleHistory or not. If they do, you just add the rule's name which is available via the Rule object also referenced by the Activation. Otherwise you'll have to design a way of referring to your objects and bundle a reference to the fact with the rule name, to create a list of pairs: reference and rule name. -W On 08/08/2012, BenjaminWolfe benjamin.e.wo...@gmail.com wrote: Is there a way to log what rules have interacted with a fact -- and keep the logging with the fact? What are the best practices for that? For example, facts are unmarshalled from an XML stream: important_fact foobar/foo /important_fact Then my rules interact with it: rule my rule no-loop true dialect mvel when i : important_fact() then i.setFoo(fee); end rule my second rule no-loop true dialect mvel when i : important_fact( foo = fee ) then i.setFoo(i.getFoo + foo); end Then I'm thinking I'd like the marshalled output to be something like this (except maybe with unique rule IDs instead of just names): important_fact foofeefoo/foo rule_history rulemy rule/rule rulemy second rule/rule /rule_history /important_fact But I'm pretty new at this. Is that ever done? If so, what are the best practices? If not, maybe there's a good reason, so why not? -- View this message in context: http://drools.46999.n3.nabble.com/Logging-Rules-Fired-on-a-Fact-Best-Practices-tp4019054.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Logging and BIRT
There is a little bit of documentation about how to create a history log: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch05.html#d0e1593 ... and how to do reporting: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch12.html Kris - Original Message - From: Amit Kumar To: Rules Users List Sent: Thursday, April 08, 2010 6:26 PM Subject: Re: [rules-users] Logging and BIRT Thanks Kris! Where are the docs for this module located. Couldn't find them in javadocs I downloaded. Thanks Amit 2010/4/8 Kris Verlaenen kris.verlae...@cs.kuleuven.be File logging is mostly for testing purposes. If you want to create a history log for reporting, take a look at the drools-bam module. This allows you create a logger that will create history information about the execution of your processes in a database, so that can be used as a data source in your reports. There are also a few sample reports in that module. new WorkingMemoryDbLogger(ksession); Kris - Original Message - From: Amit Kumar To: Rules Users List Sent: Monday, March 29, 2010 5:02 PM Subject: [rules-users] Logging and BIRT Hi Folks, I tried simple logging by using this code KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, test); It logs only basic stuff. How can I log rule runtime, etc. Trying to generate a report using BIRT as mentioned here http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-flow/html_single/index.html#d0e2353 Thanks in advance, Amit -- ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more information. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Logging and BIRT
Thanks Kris. We were able to log events and now its in BIRT arena to generate some reports. Thanks for your help. -Amit 2010/4/12 Kris Verlaenen kris.verlae...@cs.kuleuven.be There is a little bit of documentation about how to create a history log: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch05.html#d0e1593 ... and how to do reporting: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch12.html Kris - Original Message - *From:* Amit Kumar amitku...@gmail.com *To:* Rules Users List rules-users@lists.jboss.org *Sent:* Thursday, April 08, 2010 6:26 PM *Subject:* Re: [rules-users] Logging and BIRT Thanks Kris! Where are the docs for this module located. Couldn't find them in javadocs I downloaded. Thanks Amit 2010/4/8 Kris Verlaenen kris.verlae...@cs.kuleuven.be File logging is mostly for testing purposes. If you want to create a history log for reporting, take a look at the drools-bam module. This allows you create a logger that will create history information about the execution of your processes in a database, so that can be used as a data source in your reports. There are also a few sample reports in that module. new WorkingMemoryDbLogger(ksession); Kris - Original Message - *From:* Amit Kumar amitku...@gmail.com *To:* Rules Users List rules-users@lists.jboss.org *Sent:* Monday, March 29, 2010 5:02 PM *Subject:* [rules-users] Logging and BIRT Hi Folks, I tried simple logging by using this code KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, test); It logs only basic stuff. How can I log rule runtime, etc. Trying to generate a report using BIRT as mentioned here http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-flow/html_single/index.html#d0e2353 Thanks in advance, Amit -- ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more information. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more information. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Logging using JSR94 StatelessRuleSession
On 09/04/2010 20:32, madchen wrote: So the reason we're using JSR94 is because we're trying to integrate Drools with Spring to load up all the drl files upon startup and to specify the list of drls in the application context config xml file. use a changeset.xml We have spring integration for this stuff coming in 5.1 Mark I'm not aware of a clean way to do that directly with Drools, but if you know of a way, please tell. Or if I'm stuck using JSR94, is there anything else I can do aside from switching platforms? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Logging and BIRT
File logging is mostly for testing purposes. If you want to create a history log for reporting, take a look at the drools-bam module. This allows you create a logger that will create history information about the execution of your processes in a database, so that can be used as a data source in your reports. There are also a few sample reports in that module. new WorkingMemoryDbLogger(ksession); Kris - Original Message - From: Amit Kumar To: Rules Users List Sent: Monday, March 29, 2010 5:02 PM Subject: [rules-users] Logging and BIRT Hi Folks, I tried simple logging by using this code KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, test); It logs only basic stuff. How can I log rule runtime, etc. Trying to generate a report using BIRT as mentioned here http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-flow/html_single/index.html#d0e2353 Thanks in advance, Amit -- ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Logging and BIRT
Thanks Kris! Where are the docs for this module located. Couldn't find them in javadocs I downloaded. Thanks Amit 2010/4/8 Kris Verlaenen kris.verlae...@cs.kuleuven.be File logging is mostly for testing purposes. If you want to create a history log for reporting, take a look at the drools-bam module. This allows you create a logger that will create history information about the execution of your processes in a database, so that can be used as a data source in your reports. There are also a few sample reports in that module. new WorkingMemoryDbLogger(ksession); Kris - Original Message - *From:* Amit Kumar amitku...@gmail.com *To:* Rules Users List rules-users@lists.jboss.org *Sent:* Monday, March 29, 2010 5:02 PM *Subject:* [rules-users] Logging and BIRT Hi Folks, I tried simple logging by using this code KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, test); It logs only basic stuff. How can I log rule runtime, etc. Trying to generate a report using BIRT as mentioned here http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-flow/html_single/index.html#d0e2353 Thanks in advance, Amit -- ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more information. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Logging using JSR94 StatelessRuleSession
I set up the rule session basically like this: RuleServiceProvider ruleServiceProvider = RuleServiceProviderManager.getRuleServiceProvider(http://drools.org/;); RuleRuntime ruleRuntime = ruleServiceProvider.getRuleRuntime(); (StatelessRuleSession) session = ruleRuntime.createRuleSession( uri, null, RuleRuntime.STATELESS_SESSION_TYPE); I can't see a way to use AgendaEventListener because there is no place to add listeners. I tried using KnowledgeRuntimeLoggerFactory, but I get this error org.drools.jsr94.rules.StatelessRuleSessionImpl cannot be cast to org.drools.event.KnowledgeRuntimeEventManager I was wondering if anyone knew of a good way to do logging with this setup? Thanks, Kevin -- View this message in context: http://n3.nabble.com/Logging-using-JSR94-StatelessRuleSession-tp707186p707186.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Logging using JSR94 StatelessRuleSession
On 08/04/2010 23:33, madchen wrote: I set up the rule session basically like this: RuleServiceProvider ruleServiceProvider = RuleServiceProviderManager.getRuleServiceProvider(http://drools.org/;); RuleRuntime ruleRuntime = ruleServiceProvider.getRuleRuntime(); (StatelessRuleSession) session = ruleRuntime.createRuleSession( uri, null, RuleRuntime.STATELESS_SESSION_TYPE); I can't see a way to use AgendaEventListener because there is no place to add listeners. I tried using KnowledgeRuntimeLoggerFactory, but I get this error org.drools.jsr94.rules.StatelessRuleSessionImpl cannot be cast to org.drools.event.KnowledgeRuntimeEventManager I was wondering if anyone knew of a good way to do logging with this setup? My recommendation is just not to use JSR94, it's a waste of space and time. And you can't do anything other than insert objects and call fireAllRules. Mark Thanks, Kevin ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Logging in Drools?
Hi All, Is there a way to log drools activity when the engine is running? I tried to look but could not find any online documentation for this. Thanks, Malay Shah -- NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Logging in Drools?
In drools docs mention that you can use KnowledgeRuntimeLoggerFactory and create file, console, and newThreadedFileLogger. That will show you all activity inside the engine. 2010/4/5 Shah, Malay malay.s...@morganstanley.com Hi All, Is there a way to log drools activity when the engine is running? I tried to look but could not find any online documentation for this. Thanks, Malay Shah -- NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - http://salaboy.wordpress.com - http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Logging in Drools?
Thanks Salatino. Correct me if I am wrong but, I see that the methods in KnowledgeRuntimeLoggerFactory are only for stateful session. My application uses stateless knowledge sessions. Is there a different factory for this? Regards, Malay Shah From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mauricio Salatino Sent: Monday, April 05, 2010 11:32 AM To: Rules Users List Subject: Re: [rules-users] Logging in Drools? In drools docs mention that you can use KnowledgeRuntimeLoggerFactory and create file, console, and newThreadedFileLogger. That will show you all activity inside the engine. 2010/4/5 Shah, Malay malay.s...@morganstanley.commailto:malay.s...@morganstanley.com Hi All, Is there a way to log drools activity when the engine is running? I tried to look but could not find any online documentation for this. Thanks, Malay Shah NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law. ___ rules-users mailing list rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - http://salaboy.wordpress.com - http://www.jbug.com.ar - Salatino Salaboy Mauricio - -- NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Logging in Drools?
please try it, I review the interfaces and looks like you can use it with Stateless Sessions as well. Let me know if you have problems with that. 2010/4/5 Shah, Malay malay.s...@morganstanley.com Thanks Salatino. Correct me if I am wrong but, I see that the methods in KnowledgeRuntimeLoggerFactory are only for stateful session. My application uses stateless knowledge sessions. Is there a different factory for this? Regards, Malay Shah -- *From:* rules-users-boun...@lists.jboss.org [mailto: rules-users-boun...@lists.jboss.org] *On Behalf Of *Mauricio Salatino *Sent:* Monday, April 05, 2010 11:32 AM *To:* Rules Users List *Subject:* Re: [rules-users] Logging in Drools? In drools docs mention that you can use KnowledgeRuntimeLoggerFactory and create file, console, and newThreadedFileLogger. That will show you all activity inside the engine. 2010/4/5 Shah, Malay malay.s...@morganstanley.com Hi All, Is there a way to log drools activity when the engine is running? I tried to look but could not find any online documentation for this. Thanks, Malay Shah -- NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - http://salaboy.wordpress.com - http://www.jbug.com.ar - Salatino Salaboy Mauricio - -- NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - http://salaboy.wordpress.com - http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Logging in Drools?
Yeah. Got it to work. Thanks! Malay Shah Morgan Stanley | IDEAS Practice Areas 1221 Ave of the Americas, 27th Floor | New York, NY 10020 Phone: +1 212 762-4794 malay.s...@morganstanley.commailto:malay.s...@morganstanley.com From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mauricio Salatino Sent: Monday, April 05, 2010 2:04 PM To: Rules Users List Subject: Re: [rules-users] Logging in Drools? please try it, I review the interfaces and looks like you can use it with Stateless Sessions as well. Let me know if you have problems with that. 2010/4/5 Shah, Malay malay.s...@morganstanley.commailto:malay.s...@morganstanley.com Thanks Salatino. Correct me if I am wrong but, I see that the methods in KnowledgeRuntimeLoggerFactory are only for stateful session. My application uses stateless knowledge sessions. Is there a different factory for this? Regards, Malay Shah From: rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mauricio Salatino Sent: Monday, April 05, 2010 11:32 AM To: Rules Users List Subject: Re: [rules-users] Logging in Drools? In drools docs mention that you can use KnowledgeRuntimeLoggerFactory and create file, console, and newThreadedFileLogger. That will show you all activity inside the engine. 2010/4/5 Shah, Malay malay.s...@morganstanley.commailto:malay.s...@morganstanley.com Hi All, Is there a way to log drools activity when the engine is running? I tried to look but could not find any online documentation for this. Thanks, Malay Shah NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law. ___ rules-users mailing list rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - http://salaboy.wordpress.com - http://www.jbug.com.ar - Salatino Salaboy Mauricio - NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law. ___ rules-users mailing list rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - http://salaboy.wordpress.com - http://www.jbug.com.ar - Salatino Salaboy Mauricio - -- NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Logging and BIRT
Hi Folks, I tried simple logging by using this code KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, test); It logs only basic stuff. How can I log rule runtime, etc. Trying to generate a report using BIRT as mentioned here http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-flow/html_single/index.html#d0e2353 Thanks in advance, Amit ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] logging with WorkingMemoryEventListener
Hello, I want to use WorkingMemoryEventListener and AgendaEventListener for logging. But I have a generic InputObject as fact which has a parameter type to disitnguish between different fact types, but all facts are instances of the class InputObject, only the type Paramater has different values. Therefore in the log using DefaultWorkingMemoryEventListener I see only that an Object of class InputObject is inserted but not which type teh Object has. Is it possible to configure the WorkingMemoryEventListener that also the type is logged? Regards Thomas ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] logging with WorkingMemoryEventListener
You can override the toString method of InputObject to return the type information. From: [EMAIL PROTECTED] To: Rules Users List Sent: Fri Sep 05 22:31:04 2008 Subject: [rules-users] logging with WorkingMemoryEventListener Hello, I want to use WorkingMemoryEventListener and AgendaEventListener for logging. But I have a generic InputObject as fact which has a parameter type to disitnguish between different fact types, but all facts are instances of the class InputObject, only the type Paramater has different values. Therefore in the log using DefaultWorkingMemoryEventListener I see only that an Object of class InputObject is inserted but not which type teh Object has. Is it possible to configure the WorkingMemoryEventListener that also the type is logged? Regards Thomas NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] logging
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 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] logging
On Wed, Jun 18, 2008 at 10:29 AM, Jaroslaw Kijanowski [EMAIL PROTECTED] wrote: 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 Hi Ravi, have you looked at the logging facilities included in Drools, especially AgendaEventListener? That way you wouldn't have to manually log activations in the RHS of every rule. Diffing the the names of available rules versus those collected by the logging seems to me the most straightforward solution, too. Best regards Marcus ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] logging
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 -- View this message in context: http://www.nabble.com/logging-tp17779598p17779598.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Logging activations through JMS...
not sure off the top of my head for examples, I am sure there are (its easy to do anyway, just take a look at the API). As for JMS - sure that can be done. I guess the one caution would be to do with performance: if you are accessing a remote JMS destination, then the engine may be blocking on a call to a remote service, which could slow things down a lot. The best bet, if that matters, is to have a local or in memory JMS destination, and have that forwarded on if needs be, so that it can still be nice and fast. Log4j probably can take care of all of it for you. Michael. On 4/18/07, jdepaul [EMAIL PROTECTED] wrote: Hi - I saw examples of logging rule activations using WorkingMemoryFileLogger(wm) which writes a log into the local file system. I was wondering if one could log such entries in an application server via JMS - just like the Log4J jms logger would do?! Also, is there an example on how to use the Event Filter to log only specific events?! THanks, James -- View this message in context: http://www.nabble.com/Logging-activations-through-JMS...-tf3598035.html#a10049345 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users