Re: [rules-users] champion challenger
by priyag
Hi,
I have heard about champion challenger concept in many BRMS now a days. Do
we have something like this in DROOLS also ?
Rgds
Priya
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
13 years, 11 months
Guvnor with JBoss AS on Ubuntu
by alim
Hello,
I downloaded the Standalone Guvnor with JBoss AS Version 5.1 and tried
running it on Ubuntu 8.04.4 LTS with Java 1.6.0_22.
It seems to start up well, no exceptions/errors. And at the end it even
states that it has started:
15:52:50,957 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on
http-127.0.0.1-9080
15:52:51,054 INFO [AjpProtocol] Starting Coyote AJP/1.3 on
ajp-127.0.0.1-8009
15:52:51,148 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build:
SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 35s:83ms
However, when I try to go to http://<host>:9080/drools-guvnor remotly I
always get "Connection Failed"!
But when I use "telnet localhost 9080" locally then it says:
"Trying 127.0.0.1...
Connected to localhost."
What am I doing wrong? Any help is much appreciated.
Thanks,
Audrey
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-with-JBoss-AS-...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 11 months
Possible to enforce a unique salience?
by barnabyg
Hi,
Is it possible in Drools to enforce a unique salience?
Ideally this would be done at the point of entering a new rule.
For example, if a rule existed with salience of 17 and a user tried to add a
new rule of salience 17, an error message would be generated saying
'salience level already in use'.
Even better would be the ability to enforce a unique salience for rules
belonging to a particular ruleflow-group.
The reason for wanting to achieve this is to prevent indeterminate behaviour
when two or more rules exist with the same salience level.
Any help would be much appreciated.
Regards,
Barnaby
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Possible-to-enforce-a...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 11 months
DroolsFlow 5.1.1 ForEach + XOR/OR Gateway = Impossible?
by Dirk Hermanns
Hi everybody!
I'm struggling with the forEach construct. We already had a Drools Flow
running using Drools 5.0.
Now we would like to port it to Drools Flow 5.1.1.
It seems that there is a problem with the ForEach Construct in combination
with the XOR Gateway (the same
seems to be true for the OR Gateway):
Even if i set both constrains of the gateway to "eval( true )" i got an
runtime Error like (full Stacktrace at the end of my post):
Caused by: java.lang.IllegalArgumentException: XOR split could not find at
least one valid outgoing connection for split Art des Arbeitsanstosses
pruefen
I can even reproduce this behaviour when building a small workflow from
scratch.
Had anyone else such an error? Does anyone know a workaround for this?
You can reproduce this with the attached Flows.
Any help is really appreciated!
Regards,
Dirk Hermanns
P.S.: If i try to build such an Flow using the new bpmn Notation, i get an
error when building the package in Guvnor: Workitem Node xxx has no
incoming connection.
So this doesn't seem to help :(. Has anyone got the forEach (or Multiple
Instances) feature with Drools 5.1.1 working?
org.drools.RuntimeDroolsException: Unexpected exception executing action
org.drools.process.instance.event.DefaultSignalManager$SignalAction@15c90f4
at org.drools.common.AbstractWorkingMemory.executeQueuedActions
(AbstractWorkingMemory.java:1473)
at org.drools.common.DefaultAgenda.fireAllRules
(DefaultAgenda.java:1074)
at org.drools.common.AbstractWorkingMemory.fireAllRules
(AbstractWorkingMemory.java:785)
at org.drools.common.AbstractWorkingMemory.fireAllRules
(AbstractWorkingMemory.java:751)
at
org.drools.process.instance.impl.DefaultWorkItemManager.completeWorkItem
(DefaultWorkItemManager.java:120)
at
de.lvm.vorverteilung.internal.util.VorvertelungsauftragAnalysierenWorkItemHandler.executeWorkItem
(VorvertelungsauftragAnalysierenWorkItemHandler.java:51)
at
org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem
(DefaultWorkItemManager.java:72)
at
org.drools.workflow.instance.node.WorkItemNodeInstance.internalTrigger
(WorkItemNodeInstance.java:101)
at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger
(NodeInstanceImpl.java:117)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection
(NodeInstanceImpl.java:178)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted
(NodeInstanceImpl.java:144)
at
org.drools.workflow.instance.node.StartNodeInstance.triggerCompleted
(StartNodeInstance.java:49)
at
org.drools.workflow.instance.node.StartNodeInstance.internalTrigger
(StartNodeInstance.java:41)
at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger
(NodeInstanceImpl.java:117)
at org.drools.ruleflow.instance.RuleFlowProcessInstance.internalStart
(RuleFlowProcessInstance.java:32)
at org.drools.process.instance.impl.ProcessInstanceImpl.start
(ProcessInstanceImpl.java:192)
at
org.drools.workflow.instance.impl.WorkflowProcessInstanceImpl.start
(WorkflowProcessInstanceImpl.java:309)
at org.drools.common.AbstractWorkingMemory.startProcess
(AbstractWorkingMemory.java:1644)
at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess
(StatefulKnowledgeSessionImpl.java:306)
at de.lvm.vorverteilung.internal.rules.TerminHRuleFlowTest.runTermin1
(TerminHRuleFlowTest.java:252)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall
(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run
(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively
(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate
(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate
(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate
(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild
(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild
(BlockJUnit4ClassRunner.java:44)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate
(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate
(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run
(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run
(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:197)
Caused by: java.lang.IllegalArgumentException: XOR split could not find at
least one valid outgoing connection for split Art des Arbeitsanstosses
pruefen
at org.drools.workflow.instance.node.SplitInstance.internalTrigger
(SplitInstance.java:92)
at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger
(NodeInstanceImpl.java:117)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection
(NodeInstanceImpl.java:178)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted
(NodeInstanceImpl.java:144)
at
org.drools.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted
(ExtendedNodeInstanceImpl.java:53)
at
org.drools.workflow.instance.node.StateBasedNodeInstance.triggerCompleted
(StateBasedNodeInstance.java:117)
at
org.drools.workflow.instance.node.StateBasedNodeInstance.triggerCompleted
(StateBasedNodeInstance.java:98)
at
org.drools.workflow.instance.node.WorkItemNodeInstance.internalTrigger
(WorkItemNodeInstance.java:105)
at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger
(NodeInstanceImpl.java:117)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection
(NodeInstanceImpl.java:178)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted
(NodeInstanceImpl.java:144)
at
org.drools.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted
(ExtendedNodeInstanceImpl.java:53)
at
org.drools.workflow.instance.node.StateBasedNodeInstance.triggerCompleted
(StateBasedNodeInstance.java:117)
at
org.drools.workflow.instance.node.StateBasedNodeInstance.triggerCompleted
(StateBasedNodeInstance.java:98)
at org.drools.workflow.instance.node.RuleSetNodeInstance.signalEvent
(RuleSetNodeInstance.java:71)
at
org.drools.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent
(WorkflowProcessInstanceImpl.java:343)
at
org.drools.process.instance.event.DefaultSignalManager.internalSignalEvent
(DefaultSignalManager.java:79)
at org.drools.process.instance.event.DefaultSignalManager
$SignalAction.execute(DefaultSignalManager.java:167)
at org.drools.common.AbstractWorkingMemory.executeQueuedActions
(AbstractWorkingMemory.java:1471)
... 43 more
(See attached file: ZZTestFlow2.rf)(See attached file: ZZTestFlow.bpmn)
13 years, 11 months
Drools 4.0, Support for multiple pattern in accumulate source pattern
by Juergen
It appears as if accumulate does support only a single pattern CE as
source pattern, e.g.:
Number() from accumulate(
Cheese(
price : price
),
sum( price )
)
Is it possible to have more than one pattern in the source pattern, e.g.:
Number() from accumulate(
Cheese(
price : price,
type : type
)
Person(
favouriteCheese == type,
age > 30
),
sum( price )
)
The same could be said for collect, but there the problem to specify
which item of a matching tuple is to be collected, but this could be
handled recreating collect via accumulate, e.g.:
Collection() from accumulate(
cheese : Cheese(
type : type
)
Person(
favouriteCheese == type,
age > 30
),
collect( cheese )
)
13 years, 11 months
How to use a result of custom defined function in WHEN part?
by AleBu
Hi,
I am new to Drools and do some experiments on it, and encountered on a
problem which can't solve for a last few days, so maybe someone can explain
what I am doing wrong?
I will probably explain my problem with example. Lets say we have a
collection of letters like 'a', 'b', 'c', 'a', 'd', 'e', 'c'. And I want to
report all letters that are duplicated, but only once providing a number of
duplication. In other words, for each letter which is duplicated I need to
do a report by saying 'Letter X is duplicated N times.
My idea was to create cardinality collection for letters which is a
collection of POJOs Tuple where first is letter and second is cound (first
and second are properties). I created a function for it createCardinality(
Collection letters ) which returns such cardinality info and tried something
like:
when
Something( $letters: collectionOfLetters )
Tuple( $letter: first, $count: second > 1 ) from collect( Tuple() from
createCardinality( $letters ) )
then
System.out.println( "Letter "+letter+" is duplicated "+$count+"
times" )
But I am reported (at least it looks like this) about the problems with my
function createCardinality(). Maybe I misunderstood something about usage of
FROM?
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/How-to-use-a-result-o...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 11 months