Performance optimization guidelines for Drools
by Wishing Carebear
Hello,
I'm trying to run a ruleflow (sequence of only rules) using Statteful and
stateless session. Could you please point me to any performance optimization
guideliness.
Thanks
14 years, 10 months
Drools Ruleflow deadlock issue[thread]
by dhinesh kumar
Hi
I am getting the below error while creating the ksession.startProcess() instance in multithread.
i.e. two thread calling the ksession.startprocess() with the ruleflow as
based on initial testing i identified due to delete or update sql operation the below is appearing. Please let me know how to solve this issue
ERROR LOG:
Hibernate: delete from ProcessInstanceInfo where InstanceId=? and OPTLOCK=?
Hibernate: delete from ProcessInstanceInfo where InstanceId=? and OPTLOCK=?
2011/07/04 11:20:06.475{UTC} [JDBCExceptionReporter : JDBCExceptionReporter.java: logExceptions: 100] [RMI TCP Connection(6)-10.50.53.32]: WARN: : SQL Error: 60, SQLState: 61000
2011/07/04 11:20:06.475{UTC} [JDBCExceptionReporter : JDBCExceptionReporter.java: logExceptions: 101] [RMI TCP Connection(6)-10.50.53.32]: ERROR: : ORA-00060: deadlock detected while waiting for resource
2011/07/04 11:20:06.475{UTC} [AbstractFlushingEventListener : AbstractFlushingEventListener.java: performExecutions: 324] [RMI TCP Connection(6)-10.50.53.32]: ERROR: : Could not synchronize database state with session
org.hibernate.exception.LockAcquisitionException: could not delete: [org.drools.persistence.processinstance.ProcessInstanceInfo#8130]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:112)......
Regards
Dhinesh Kumar V
14 years, 10 months
How to update the working memory of a nested object attribute
by Wishing Carebear
Hi,
My rules update the nested object attributes :eligibilityScore which is used
in another rule downstream.
Only the Client object is sent as fact, the nested object is derived using
the from keyword (list of services)
rule "Rule 8 EligibilityRating"
agenda-group "EligibilityRating"
no-loop true
salience 5
//dialect "mvel"
when
$client : Client(type == "Preferred")
$policy : Service(productType == "Vehicle Insurance") from
$client.service
then
System.out.println(" Rule 8 ER = type == preferred:"+
$policy.getId() + ": -50");
int eScore = $policy.getEligibilityScore() - 50;
* $policy.setEligibilityScore(eScore);* // how to let the downstream
rule know that this atribute value is updated without letting this current
rule go into infinite loop
end
Any suggestion is greatly appreciated
14 years, 10 months
Guvnor 5.2.0-Final in Tomcat 6.0.32 fail to compile rules
by pamerida
Hi everyone,
I am trying to create some rules with Guvnor guided editor but when I try to
validate the rule it gives me a error message like this:
"Unable to wire compiled classes, probably related to compilation
failures:[Error: unable to resolve method using strict-mode:
java.lang.Object.dateTimePeriod()] [Near : {...
DTM[0].dateTimePeriod.dateOrTimeOrPer ....}] ^ [Line: 1, Column: 8"
I have tried to turn off the strict mode by modifying the
drools.packagebuilder.conf putting false in this property, but nothing seems
to work
drools.dialect.mvel.strict = false
Thanks so much for your help... :)
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-2-0-Final-in-Tomcat-6-0-32-fai...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 10 months