Re: [rules-users] Possible concurrency issue in Drools

2010-08-05 Thread Norman C
I've run into this issue a few more times.  Should I log a JIRA ticket for this?  Any advice would be appreciated. Thanks, Norman From: Norman C rent_my_t...@yahoo.com To: rules-users@lists.jboss.org Sent: Sat, July 31, 2010 9:56:26 PM Subject: Re: Possible

Re: [rules-users] How to aggregate decisions of multiple rules?? (In Guvnor)

2010-08-05 Thread Michael Anstis
I am a little confused by what you are saying; could you please clarify? Do you insert a new decision object in working memory from each rule; and then you need another rule operating on decision objects of a certain categorisation? The formatting of your email did not lend itself well to

[rules-users] Can't see process in gwt-console after changing guvnor to authenticator

2010-08-05 Thread Han Ming Low
Hi, I'm having problems with seeing the process in gwt-console. :p This time the difference is I change the guvnor components.xml authenticator to other and role based authorization as true and set the login-config.xml authentication to a users.properties The steps and difference in setup I

Re: [rules-users] How to aggregate decisions of multiple rules?? (In Guvnor)

2010-08-05 Thread Wolfgang Laun
Assuming that the engine is handling one set of facts at a time, I would use a single additional fact to collect all decisions. The details of this object may vary (depending on whether you have a constant number of rules or not). enum Decision { UNDEF, GRANTED, DEFERRED,... } class Collector {

[rules-users] drools 5.1 overview

2010-08-05 Thread miguel machado
Hi all, I just recently noticed that drools 5.1 is out and i'd like to congratulate the jboss team for this great milestone achievement. I've also noticed that there is separate documentation for this version on http://jboss.org/drools/documentation.html but i haven't been able to find the major

[rules-users] Rule flow persistence MY SQL

2010-08-05 Thread sony . john
Hi , Iam trying to persistence drools workflow using my sql as back end . But iam getting Could not commit sessions Iam trying with example code, drool.session.conf file contains drools.workItemHandlers = MyWorkItemHandlers.conf #drools.commandService =

Re: [rules-users] drools 5.1 overview

2010-08-05 Thread Mark Proctor
On 05/08/2010 10:44, miguel machado wrote: Hi all, I just recently noticed that drools 5.1 is out and i'd like to congratulate the jboss team for this great milestone achievement. I've also noticed that there is separate documentation for this version on

Re: [rules-users] drools 5.1 overview

2010-08-05 Thread miguel machado
thanks a lot, i'll look into it! _ miguel 2010/8/5 Mark Proctor mproc...@codehaus.org On 05/08/2010 10:44, miguel machado wrote: Hi all, I just recently noticed that drools 5.1 is out and i'd like to congratulate the jboss team for this great milestone achievement. I've also noticed

[rules-users] A Set of Rules but no match

2010-08-05 Thread Wolfgang Laun
I'm using code such as KnowledgeRuntime knowledgeRuntime; for( KnowledgePackage knowledgePackage: knowledgeRuntime.getKnowledgeBase().getKnowledgePackages() ){ for( Rule rule: knowledgePackage.getRules() ){ } } to obtain rules, intending to construct a SetRule. This, however,

[rules-users] Is Drools rule engine thread safe

2010-08-05 Thread james corrigan
Hi All, I am trying to implement a mutli-threaded application using Drools Guvnor, my question is whether or not i can share a reference of say a StatefulKnowledgeSession or Knowledge between multiple threads? Any help is much appreciated. Kind regards, James.

Re: [rules-users] creating .pkg from .drl

2010-08-05 Thread jrob
After further testing, here's what I am seeing. GOAL: Serialize a KnowledgePackage object (or Collection of them) to a File, read that file in as a PKG to create a KnowledgeBase I have not gotten basic Java Serialization to work. I get the exception from the previous post every time I try to

Re: [rules-users] creating .pkg from .drl

2010-08-05 Thread Esteban Aliverti
Try to add all the packages to a kbuilder and then serialize the resulting packages. You will need to create a PKG per logical package though. If your DSLR and DSL files are in the same logical package, the kbuilder will only contain one package that you have to serialize. Best,

[rules-users] Drools 5.1.0 install minor issue

2010-08-05 Thread Patricia Bogoevici
Hi all, Just wanted to let know that there is a minor issue on the installation script for 5.1.0. When running the task: ant install.demo It fails with this error: drools-5.1.0/install/build.xml:158: Can't get

[rules-users] Another solution for: Detecting more than 3 occurrences within 1 hour

2010-08-05 Thread Tina Vießmann
Hi, I'm working on thinking in Drools rules. Right now I'm trying to solve this: The rule shall fire if _a special event occurs more than 3 times within 1 hour_. My _first thought of a solution_ was to count the count the detected events using a counter. But the counter has to be a global

Re: [rules-users] A Set of Rules but no match

2010-08-05 Thread Wolfgang Laun
My patch adding hashCode and equals has been applied by Edson. -W On 5 August 2010 13:09, Wolfgang Laun wolfgang.l...@gmail.com wrote: I'm using code such as KnowledgeRuntime knowledgeRuntime; for( KnowledgePackage knowledgePackage:

Re: [rules-users] creating .pkg from .drl

2010-08-05 Thread jrob
Ok, did that and it still only works when serializing using DroolsStreamUtils.streamOut and using a KnowledgeAgent to construct the KnowledgeBase from the serialized package, but it does work with multiple resources in the same logical package when serializing. Still fails when trying to use

[rules-users] MinaTaskClientHandler Reference Object

2010-08-05 Thread drooRam
How can I obtain reference to MinaTaskClientHandler through drools config tags? I mean .. we have drools:kbase tag for KnowledgeBase...similarly, do we have anything for MinaTaskClientHandler... I basically need to call the methods, TaskClient.claim, TaskClient.complete etc thro

Re: [rules-users] Another solution for: Detecting more than 3 occurrences within 1 hour

2010-08-05 Thread Wolfgang Laun
Basic idea: associate a Watcher with each event. class Watcher { Value what; int count = 1; SetValue valueSet = new HashSetValue(); Watcher( Value first ){ valueSet.add( what = first ); } //... } And now the rules: rule attachWatcher when $event : Value(

[rules-users] Edit global imports through eclipse plugin

2010-08-05 Thread drooRam
how can i edit global imports in workflow rf file through eclipse plugin... not manually... I would like to add global imports to workflow file through eclipse ?? -drooRam -- View this message in context:

[rules-users] NullPointerException on jpaSingleSessionCommandService

2010-08-05 Thread drooRam
I have configured the applicationContext.xml as follows for stateful JPA persistance session - jpaSingleSessionCommandService : drools:ksession id=jpaSingleSessionCommandService type=stateful kbase=flowKnowledge drools:configuration drools:jpa-persistence

Re: [rules-users] Another solution for: Detecting more than 3 occurrences within 1 hour

2010-08-05 Thread Tina Vießmann
Thank you for this approach, Wolfgang. That sounds great. :) I just have some further question about your solution. #1 I'm thinking about an approach without the need modifying things outside the drl file. Is something like that doable? Because I have to create the watcher class? (I don't

[rules-users] Guvnor support of custom operators

2010-08-05 Thread alopez
Hi, I'm using custom operators in Drools, implementing EvaluatorDefinition and BaseEvaluator interfaces, and adding them to the KnowledgeBuilderConfiguration. (tested on 5.01) Is there a way to make these new operators available in the Guvnor guided editor? Thanks! Alejandro -- View this

[rules-users] IllegalStateException : DroolsJPAManager while calling session.dispose() method.

2010-08-05 Thread drooRam
Hi I have got the following exception when i tried to call ksession.dispose() method : Does anyone have faced this problem before?? java.lang.IllegalStateException: No value for key [org.springframework.orm.jpa.localcontainerentitymanagerfactoryb...@173898a] bound to thread [http-8080-1]