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
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,
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
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/
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
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) {
@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
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
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
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
10 matches
Mail list logo