[rules-users] How to monitor drools execution time?

2011-11-13 Thread Zhao Yi
I want to check how long each rule executed. Can I add any listener on drools run time to get the rule time? Thanks, Zhao Yi -- View this message in context: http://drools.46999.n3.nabble.com/How-to-monitor-drools-execution-time-tp3505792p3505792.html Sent from the Drools: User forum mailing

Re: [rules-users] How to monitor drools execution time?

2011-11-13 Thread Benson Fung
You can use the Drools guvnor to measure the execution time of each rule. This is the feature of that. On Mon, Nov 14, 2011 at 11:00 AM, Zhao Yi zhaoyi0...@gmail.com wrote: I want to check how long each rule executed. Can I add any listener on drools run time to get the rule time? Thanks,

Re: [rules-users] How to monitor drools execution time?

2011-11-13 Thread Davide Sottara
Sure, you can use /ksession.addEventListener( listener )/ to add your listeners. You'll have to implement the /AgendaEventListener/ interface: in particular, the /beforeActivationFired/ and /afterActivationFired/ handlers. If needed, the /WorkingMemoryEventListener/ will let you monitor object

Re: [rules-users] How to run an agenda group multiple times?

2011-11-13 Thread Davide Sottara
Were the rules in the agenda group entitled to fire more than once? For a rule to fire, it must be activated by the insertion, update or (sometimes) retraction of one or more objects. Once a rule has fired, it can't fire again until it gets activated again. An agenda-group can be used to /prevent/

Re: [rules-users] String length check

2011-11-13 Thread Davide Sottara
I'd also use the int 8 instead of the String 8 :) -- View this message in context: http://drools.46999.n3.nabble.com/String-length-check-tp3502269p3505833.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing

[rules-users] Help needed - Repository not getting initialised?

2011-11-13 Thread Praveen
Hi, Repository is not getting initialised, throws NPE. Please advise. TIA. public static Repository repository; public static Session getSession() throws Exception { return getSession(true); } public static synchronized Session getSession(boolean erase) {

Re: [rules-users] String length check

2011-11-13 Thread lansyj
@Davide, I'm using the guided editor and I am putting the value as 8 But the generated source shows 8. Not sure of this is a defect in Drools or something that I'm doing incorrectly. -- View this message in context: http://drools.46999.n3.nabble.com/String-length-check-tp3502269p3506079.html

[rules-users] [rule engine advantage?]Logic and Data Separation - how to archieve the transparent domain/fact object insertion?

2011-11-13 Thread kapokfly
Logic and Data Separation Your data is in your domain objects, the logic is in the rules. This is fundamentally breaking the OO coupling of data and logic, which can be an advantage or a disadvantage depending on your point of view. The upshot is that the logic can be much easier to maintain as

[rules-users] Email Service

2011-11-13 Thread ANJALI
Hi guys, Iam trying to send email through drools by using bpmn.xml...in order to do so i need to register a work item handler into my session. I have done in this way ksession.getWorkItemManager().registerWorkItemHandler(Email, emailWorkItemHandler); And this is my class for

Re: [rules-users] String length check

2011-11-13 Thread Michael Anstis
Guvnor used to escape all literals with quotation marks before 5.2. There have been numerous fixes to the BRL Guided Editor for 5.2 onwards. I would definitely recommend an upgrade. Can you please advise if you used an expression for your nested accessor or sub-field constraints? Thanks, Mike