ProcessEventListener event order
by Carlos Villegas
Hi,
I'm testing the ProcessEventListener on a simple process and I get the
"after" events in reverse order.
For example,
Process completed : 1283915643204
Node left: 5: 1283915643268
Node triggered: 5: 1283915643268
Node left: 4: 1283915643268
Node triggered: 4: 1283915643269
Node left: 3: 1283915643269
Node triggered: 3: 1283915643270
Node left: 2: 1283915643270
Node triggered: 2: 1283915643270
Node left: 1: 1283915643270
Node triggered: 1: 1283915643271
Node left: 0: 1283915643271
Node triggered: 0: 1283915643271
Process started : 1283915643271
I'm just printing the node id and the time in milliseconds.
Is this the way is supposed to be?
I guess technically "after" could be anytime after, but if I use the
afterProcessStarted event, I get it after the whole process has
completed!, which it's not useful at all.
The "before" events work as expected I think.
I'm using Drools Flow 5.1.0.
Thanks,
Carlos
14 years, 5 months
CPU Spike creating a StatefulKnowledgeSession using OSGi
by David Conde
Good Morning,
I now have drools running on the Spring DM-Server but I am seeing a CPU
spike when creating a StatefulKnowledgeSession. I've tested this outside of
an OSGi environment and I don't see the spike. Does anyone know any settings
that I can change that might make this go away?
Thanks,
Dave
--
David Conde
CTO Calom Technologies
14 years, 6 months
Questions regarding Guvnor
by Harshit Bapna
Hello All,
Few questions:
1. What is the release date of Guvnor 5.2 ? (Couldn't find it from the site
of the documentation)
I am interested in the functionality to add the guvnor editors in
another app for rule editing. i.e. StandaloneEditorServlet
2. Which SVN TAG of the Guvnor (which has standalone editor functionality)
should I use ?
Note: On trunk I have observed that the war contains a folder *guvnor* where
as guvnor 5.1 war contained folder *org.drools.guvnor.Guvnor*
Also the web.xml in the trunk has the following url pattern <url-pattern>/*
org.drools.guvnor.Guvnor*/feed/*</url-pattern>
This url pattern would never be matched as the Guvnor.html is under
guvnor/Guvnor.html. To make it work I had to update the url patterns in the
web.xml
Is there anything that I am doing wrong ? (mvn clean install
-Dmaven.test.failure.ignore=true)
IMO, the trunk has partial changes checked in. Hence it is not stable.
Thanks
14 years, 6 months
Extracting management information from the content of the rules
by Henrique Lira
Hi,
I'm doing an evaluation of Guvnor tool, and one of the requirements that we
wish to be met is the ability to extract management reports from the content
of the rules. Let me explain better: assuming I have several rules that
define discounts for products depending on their characteristics, how can I
get, for example, which products have a discount of X%? I tried using the
search function of the Guvnor, but I found it very simple to more managerial
information like this? Is there any other functionality to generate more
complex queries?
Thanks in advance,
Henrique
--
View this message in context: http://drools.46999.n3.nabble.com/Extracting-management-information-from-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 6 months
Using hashmap in guided decision table in Guvnor
by ankitmasrani
Hi,
I am new to Drools and Guvnor and I have the following query:
1. I have uploaded a pojo model jar which has a class A containing a
hashmap<String, String> attr1.
2. Then, I created a new rule- Guided decision table.
3. And i want to define a rule lets me select a key of the hashmap defined
using the drop-down pop-up and check the corresponding value in the second
column. Then perform an action.
Example: check Key= "Name" and value="Abc". then set an output string- "Name
ok" in action.
Please provide any suggestions.
Thank You
Ankit
--
View this message in context: http://drools.46999.n3.nabble.com/Using-hashmap-in-guided-decision-table-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 6 months
Drools HA
by gboro54
Hi everyone. We are currently evaluating drools as a potential solution of a
high throughput billing system. As is such we are planning to have messages
read from a queue from 2 or more nodes. One thing we are trying to figure
out is best way to share state in drools. The situation we are facing is as
follow:
-Node 1 reads message 1
-Node 2 reads message 2
-Node1 begins execution of rules on message 1 with context information
-Node2 begins execution of rules on message 2 with context information
-Node 1 updates the context information such that rules being executed by
node2 should be reevaluated(i.e node 1 in the rules session executed an
update on the context object)
What is the best way to handle this situation?
Thanks
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-HA-tp3619496p3619496.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 6 months
KnowledgeAgent and applyChangeSet
by bob.breitling
If I have a KnowledgeAgent and I create a URL Resource and set its
basicAuthenication, username and password attributes then I call the agents
applyChangeSet method I get a HTTPD 401 response from the Guvnor. It does
not happen to my resourse which has a valid username and password, but it
happens to the resource in the changeSet xml tag.
It would seem to me that the resources that are built from the resource I
passed would inherit the basicAuthenication, username and password
attributes that I set and know work, but they don't and I get this error.
If I debug the code and filling in those values on the resource passed to
the createPackageFromResource method before the resource stream is read the
code works.
I am using the NilAuthenicator in the Guvnor components.xml and that seems
to be working. I get access to the Guvnor without being asked for
credentials.
I tried to configure my jboss (4.2.0) in login-config.xml to allow access to
everything as guest. But no luck.
Any suggestions?
Bob
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/KnowledgeAgent-and-ap...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 6 months
Two bugs(?) of drools 5.3
by Miles Wen
Hi all,
I'm using drools 5.3.0.Final.And I think I found two possibly bugs:
1): drl compilation failed when encountering multiple continuous '!' (a.k.a
'not' operator)s.for example:
rule "out"
when
Msg(!!!false)
then
end
the code above won't compile, but 'Msg(!false)' compiles correctly. I
remember there's no such problems when using drools 5.0, this caused some
incompatibility issues in our system...
2): Weird exception thrown: java.lang.ClassCastException:
org.drools.reteoo.InitialFactImpl cannot be cast to XXX..., for example:
rule "test"
when
l1:Msg(str == 'test') and
l2:Msg(!bool) or
eval(!false)
then
end
this code above throws exception at runtime:
org.drools.RuntimeDroolsException: Unexpected exception executing action
org.drools.reteoo.ReteooWorkingMemory$WorkingMemoryReteAssertAction@743fbbfc
at
org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:977)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:315)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:291)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:886)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:845)
at
org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:255)
at com.sample.DroolsTest.main(DroolsTest.java:56)
Caused by: org.drools.RuntimeDroolsException:
com.sample.Rule_testEval0Invoker@3e1b05a2 : java.lang.ClassCastException:
org.drools.reteoo.InitialFactImpl cannot be cast to com.sample.Msg
at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:119)
at
org.drools.reteoo.EvalConditionNode.assertLeftTuple(EvalConditionNode.java:178)
at
org.drools.reteoo.SingleLeftTupleSinkAdapter.doPropagateAssertLeftTuple(SingleLeftTupleSinkAdapter.java:197)
at
org.drools.reteoo.SingleLeftTupleSinkAdapter.createAndPropagateAssertLeftTuple(SingleLeftTupleSinkAdapter.java:146)
at
org.drools.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java:158)
at
org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:59)
at
org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:215)
at
org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:244)
at org.drools.reteoo.Rete.assertObject(Rete.java:107)
at
org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:284)
at
org.drools.reteoo.ReteooWorkingMemory$WorkingMemoryReteAssertAction.execute(ReteooWorkingMemory.java:404)
at
org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:975)
... 6 more
Caused by: java.lang.ClassCastException: org.drools.reteoo.InitialFactImpl
cannot be cast to com.sample.Msg
at com.sample.Rule_testEval0Invoker.evaluate(Unknown Source)
at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:114)
... 17 more
Is there any workaround for those problems? especially the 2nd one...
Any help would be appreciated,
Thanks!
--
Regards.
Miles. Wen
14 years, 6 months