Drools-Persistence with pessimistic transaction locking?
by Stephan.Koops@We4IT.com
Hi,
as far as I have seen drools JPA persistence uses optimistic transactions.
Is this required for drools? Or can I switch to locking based
transactions? (Mayby I missed some documentation.)
If someone have a good pointer how to do that, that would be the very
best.
Mit freundlichen Grüssen/Best regards
i. A.
Stephan Koops
Software Engineer
We4IT GmbH
*****************************************************
Veranstaltungen mit We4IT:
10.-12.05.2011 - Lotus Alliance Days in Hamburg, Frankfurt und München
Social Business und aktuelle Roadmaps zu Lotus-Produkten kompakt an einem Tag präsentiert.
http://www.we4it.com/aktuelles/events/365-lotus-alliance-days-10-bis-12-m...
18.5. bis 20.05.2011 - DNUG Frühjahrskonferenz in Bonn
LOTUS ALLIANCE Day im Rahmen der DNUG Frühjahrskonferenz in Bonn.
Erleben Sie spannende Vorträge die über den Tellerrand hinausreichen und erweitern Sie Ihren Horizont.
http://www.we4it.com/aktuelles/events/362-dnug-vom-18-20-mai.html
*****************************************************
We4IT GmbH
Technologiepark 11
33100 Paderborn
Tel: +49 5251 / 70993 - 24
Fax: +49 5251 / 70993 - 01
Mobil:
E-Mail: stephan.koops(a)we4it.com
Internet: http://www.we4it.com
HRB 20740, Amtsgericht Bremen
Geschäftsführer: Stefan Sucker, Vicente Diaz Fernandez
USt.-ID.-Nr. DE 220 859 831
Diese Nachricht ist vertraulich und ausschließlich für die adressierte Person und/oder Organisation bestimmt. Vertrauliche und/oder spezifische Informationen können hierin enthalten sein. Falls Sie ein nicht beabsichtigter Empfänger dieser Nachricht sind, sind das Kopieren, Verteilen und/oder das Aufnehmen aus dem Inhalt resultierender Handlungen untersagt. Haben Sie diese Nachricht fehlerhaft und/oder unvollständig erhalten, benachrichtigen Sie uns bitte umgehend unter unseren oben genannten Kontaktmöglichkeiten.
This message is confidential and intended solely for the person or organization to which it is addressed. It may contain privileged and confidential information. If you are not the intended recipient, you should not copy, distribute or take any action on reliance on it. If you have received this transmission in error, please notify us immediately by e-mail at the above address.
13 years, 6 months
Deactivating ruleflow-group in AgendaFilter to prevent looping in stateless session
by drdaveg
I have a stateless session with a large number of rules most of which set
values used elsewhere in the application so looping is a big issue. The
rules have been organized into a ruleflows in order to foster orchestration.
As a very clean approach to avoid looping (i.e., avoiding adding control to
rules) I added an AgendaFilter that tracks the rules that have been fired.
Several previous posts discuss that using AgendaFilter's prohibit a
ruleflow-group with no activations being detected. Conversely, the API for
(de)activating a ruleflow-group seems gone; what is the best way of changing
the ruleflow-group from the current group to the one that should execute
next (i.e., the next one in the ruleflow)?
--
View this message in context: http://drools.46999.n3.nabble.com/Deactivating-ruleflow-group-in-AgendaFi...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 6 months
Looping through a vector object in a rule
by sdinoo
I am new to drools
I am inserting into a ksession a single claim POJO + vector of previous
claims
Like this
ksession.insert(claim); // single claim
ksession.insert(historyClaims); // vector of claims
ksession.startProcess("com.dur.claim");
ksession.fireAllRules();
I want to compare single claim variable values with all the claims in the
vector
how do I loop through the vector objects and compare the values in the Rule
(.drl) file?
Can someone help me out?
--
View this message in context: http://drools.46999.n3.nabble.com/Looping-through-a-vector-object-in-a-ru...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 6 months
Using constant for salience instead of hardcoded values?
by alebu
Hi all,
Is it possible to use a constant for salience instead of hardcoded
value? It have a sence when you have many rules and only several
salience level. They maybe more descriptive like START, VALIDATION,
etc and easier to maintain in the future. If it not possible right
now, then maybe it worth to request like feature request in the
future?
13 years, 6 months
JBRULES-2796 - NullPointerException in FromNode.destroyCreatedHandles
by Gareth Evans
Hello,
I think I am getting the same/similar problem as described in
JBRULES-2796. I am using Drools 5.1.1 with Expert and Flow, here is
the stack trace:
Caused by: java.lang.NullPointerException
at org.drools.reteoo.FromNode.destroyCreatedHandles(FromNode.java:336)
at org.drools.reteoo.FromNode.retractLeftTuple(FromNode.java:326)
at
org
.drools
.reteoo
.CompositeLeftTupleSinkAdapter
.doPropagateRetractLeftTuple(CompositeLeftTupleSinkAdapter.java:238)
at
org
.drools
.reteoo
.CompositeLeftTupleSinkAdapter
.propagateRetractRightTuple(CompositeLeftTupleSinkAdapter.java:155)
at org.drools.reteoo.JoinNode.retractRightTuple(JoinNode.java:151)
at org.drools.reteoo.ObjectTypeNode.retractObject(ObjectTypeNode.java:
232)
at org.drools.reteoo.EntryPointNode.retractObject(EntryPointNode.java:
231)
at
org
.drools
.common.AbstractWorkingMemory.retract(AbstractWorkingMemory.java:1288)
at
org
.drools
.base.DefaultKnowledgeHelper.retract(DefaultKnowledgeHelper.java:201)
at
org
.drools
.base.DefaultKnowledgeHelper.retract(DefaultKnowledgeHelper.java:214)
at
procs
.Rule_my_business_rule_0
.defaultConsequence(Rule_my_business_rule_0.java:8)
at
procs
.Rule_my_business_rule_0DefaultConsequenceInvoker
.evaluate(Rule_my_business_rule_0DefaultConsequenceInvoker.java:29)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:
917)
The stack trace is different to the one in JBRULES-2796 in that mine
is caused by a retract rather than an update.
We've created several Flows and associated rules and this issue has
only just come up with a recently created one.
Firstly, is this the same issue?
If it is, where could I find previous releases of Drools so that I may
try to downgrade? Alternatively is there some 5.1 -> 5.2 migration
documentation?
I have tried rewriting the rule that triggers this as there was a
comment on rules-dev that this made the error go away though I am
having trouble coming up with different ways to write it as it is
quite a simple rule. Is there something specific I should try to avoid?
--
Gareth Evans
Application Developer
Geneoz Pty Ltd
http://www.geneoz.com
gevans(a)geneoz.com
+61 8 9212 2200 (Phone)
+61 8 9212 2299 (Fax)
PO Box 1128
Bentley DC, WA 6983
AUSTRALIA
Now Introducing...
geneoz VMS
The Vivarium Management Solution
http://www.geneoz.com
________________________________________________________________
This email contains information that is private and confidential
and must be read only by the person to whom it is addressed.
This email is not a contract and does not give rise to a legally
binding agreement. Prices quoted are valid for 30 days and are
subject to exchange rate fluctuations.
________________________________________________________________
13 years, 6 months
Problems with Drools 5.2.0.M1 and IE7?
by John Peterson
Has anyone experienced problems running with the graphic layout of Guvnor with Drools 5.2.0.M1 on Internet Explorer 7? It appears to be okay with IE8.
Thanks.
13 years, 6 months
addpackagefromdrl removed and multiple DSL functionality lost?
by drdaveg
Several posts refer to a pre-5.0 addpackagefromdrl method that builds a rule
file for an associated DSL file. This let multiple DRL files be associated
to a specific DSL file for compilation.
KnowledgeBuilder.add(...) lets you add multiple DRL and DSL files, but it
seems as if the "expander" keyword (as noted in the list) is used by Eclipse
- not KnowledgeBuilder - to compile the DRL with the correct DSL. Also the
DSL file used to compile the DRL is now dependent on the .add statement
sequence with DSL's "hiding" other DSL's.
Is there an equivalent API call to addpackagefromdrl?
While one could have mutiple KnowledgeBuilder's, each with a
StatefulKnowledgeSession, this would push orchestra of many applications
(like my BPM application) to Java - instead of Drools.
--
View this message in context: http://drools.46999.n3.nabble.com/addpackagefromdrl-removed-and-multiple-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 7 months