Re: [rules-users] Guvnor rule with a not and an ==

2011-04-29 Thread Dean Whisnant
We are using 5.1.1, I tried to update to 5.2.0M1 a while back and there were too many visual issues which did not work in that version. I see that 5.2.0.M2 is on the download site now, I may install that in my sandbox and see if there is this feature there. I know we were waiting for a few ot

Re: [rules-users] Guvnor rule with a not and an ==

2011-04-29 Thread Esteban Aliverti
Which version of guvnor are you using? I think i solved a similar problem in trunk. Please search in jira to check if this is already solved. Unfortunately i don't have the link :( Best regards, El abr 29, 2011 7:27 p.m., "Michael Anstis" escribió: __

Re: [rules-users] drools in my web-app

2011-04-29 Thread Michael Anstis
Assuming you simply mean a web application, and not EJB too then use of a StatelessKnowledgeSession per HTTP request offers the best scalability. You can create the KnowledgeBase in a variety of standard ways; ServletContextListener, @Singleton etc but your goal would be to create a singleton inst

Re: [rules-users] Format of model for guvnor

2011-04-29 Thread Michael Anstis
The "declare" keyword is used to declaratively define a model rather than use a JAR file containing the same. It is documented in Experts' documentation "4.7 Type Declaration". With kind regards, Mike On 29 April 2011 08:25, azahra wrote: > I am trying to use Guvnor with an existing model. I

Re: [rules-users] Guvnor rule with a not and an ==

2011-04-29 Thread Michael Anstis
I don't believe it is possible to negate rules in Guvnor using the guided editor. Please raise a JIRA for an enhancement. AFAIK the only work around would be to specify "Free form DRL" when constructing the pattern. With kind regards, Mike On 29 April 2011 21:46, Dean Whisnant wrote: > > Hi,

Re: [rules-users] Need help setting up Drools Server using Maven

2011-04-29 Thread kkelleyjr
Sorry, the package being sent is as follows: MESSAGE_TYPE1 Test Message -- View this

Re: [rules-users] Need help setting up Drools Server using Maven

2011-04-29 Thread kkelleyjr
I have uploaded the maven project in the following zip file... http://drools.46999.n3.nabble.com/file/n2881070/SimpleDroolsDemo.zip SimpleDroolsDemo.zip The soupui is: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:soap="http://soap.jax.drools.org/";>

Re: [rules-users] Need help setting up Drools Server using Maven

2011-04-29 Thread Mauricio Salatino
Drools server exposes web services end points. So you can unit test Drools Server as any other web service application. It's not drools related question. Can you share the rules, the objects and the configuration that you are using? can you create a simple project that demonstrate the problem. We n

[rules-users] Guvnor rule with a not and an ==

2011-04-29 Thread Dean Whisnant
Hi, I have a rule where I want to check if an object doesn't exist or it exists and a field in it is null or a field in it is D. Here's .drl code that works rule "test does not exist is null or is D" when (not CLM_DET_LOAD_PendCode() || CLM_DET_

Re: [rules-users] Need help setting up Drools Server using Maven

2011-04-29 Thread kkelleyjr
salaboy wrote: > > if you are importing the class Type, the second rules is ok. > If you are not importing it, probably depends on the message that you are > sending. > Greetings. > I have tried a variety of ways to set this up. However, the issue persist... The message being sent in looks fine

Re: [rules-users] Drools Performance

2011-04-29 Thread jkrupka
Someone already mentioned writing "good" rules versus "bad" rules which is definitely critical - things like avoiding things like eval when possible. For our stateful rules session we took a lot of time in designing the architecture, facts, etc to avoid having to do any non-rules processing (db qu

Re: [rules-users] Salience problems

2011-04-29 Thread Chris Selwyn
Thanks very much Wolfgang... that appears to fix it. Chris On 28/04/2011 06:51, Wolfgang Laun wrote: This has indeed been discovered recently, for certain scenarios where activations were queued in the wrong order after fact modification. The fix is in ./drools-core/src/main/java/org/drools/

[rules-users] drools flow: is it possible to directly manipulating process instance variables?

2011-04-29 Thread Stephan . Koops
Hi, I use drools flow with JPA persistence. Is it possible to directly access and manipulating process instance variables? You could see the changed variables in the log (table variableinstancelog), but I don't know how to directly access or change them in the living process, The use case is, t

[rules-users] Deploying Guvnor on a existing repository DB

2011-04-29 Thread maav
Hi! I'm trying to get Guvnor to deploy on a pre-existing existing DB. The use case beeing that we wan't to be able to bring up a backup instance of guvnor in case the primary goes down. But if a deploy guvnor on a "fresh" DB schema all tables get created along with trigger and sequences (using

Re: [rules-users] New in Drools: Updating facts retrieved in queries

2011-04-29 Thread Manuel Ortiz
Hi Wolfgang: Thank you very much for the explanation. Now everyting works fine. Best regards, Manuel Ortiz. 2011/4/29 Wolfgang Laun > > 2011/4/29 Manuel Ortiz > >> >> import es.simcasva.alarmas.src.MDSVHechoAlarma; >> >> >> query "existe Alarma" (MDSVHechoAlarma referencia) >> $alarma

Re: [rules-users] Error opening dslr in Eclipse on Mac

2011-04-29 Thread Benson Fung
What version of jdk and Drools plugin are you using? 2011/4/29 Steven Williams : > Hi, > I am running Eclipse Helios on Mac OS X 10.6.7 with the Drools 5.1.1 plugin > and cannot open DSLR files with the error below. This error also occurs if I > create a new Drools project, create a new rule resou

Re: [rules-users] New in Drools: Updating facts retrieved in queries

2011-04-29 Thread Wolfgang Laun
2011/4/29 Manuel Ortiz > > import es.simcasva.alarmas.src.MDSVHechoAlarma; > > > query "existe Alarma" (MDSVHechoAlarma referencia) > $alarma : MDSVHechoAlarma( iIdAlarma == referencia.iIdAlarma, > > > The reported errors are: > > Description Resource Path Location Type > BuildError: Not

Re: [rules-users] New in Drools: Updating facts retrieved in queries

2011-04-29 Thread Manuel Ortiz
Hi again Wolfgang: Thank you for your quick answer. getFactHandle is the method I needed. Concerning the second question, I'm using Drools 5.1.1 and yes, I imported AlarmFact. Below you can find the relevant lines of the drl file, in which the 'real name' of AlarmFact is MDSVHechoAlarma: #create

Re: [rules-users] New in Drools: Updating facts retrieved in queries

2011-04-29 Thread Wolfgang Laun
You can call FactHandle fh = kSession.getFactHandle( factObj ); query "alarmExists" (AlarmFact key) should work in 5.1.1 and 5.2. Did you import AlarmFact in the DRL? Otherwise, what message are you getting in which version? -W 2011/4/29 Manuel Ortiz > Hello everybody: > > I have two qu

[rules-users] Error opening dslr in Eclipse on Mac

2011-04-29 Thread Steven Williams
Hi, I am running Eclipse Helios on Mac OS X 10.6.7 with the Drools 5.1.1 plugin and cannot open DSLR files with the error below. This error also occurs if I create a new Drools project, create a new rule resource and select the Use a DSL checkbox. DRL files open fine. Could not open the editor: 1

[rules-users] New in Drools: Updating facts retrieved in queries

2011-04-29 Thread Manuel Ortiz
Hello everybody: I have two question related to queries: First one, the one in the subject, I have a query which retrieves facts which have to be modified and updated in working memory. I've seen that the StatefulKnowledgeSession.update() method has the fact handle as input. Is it possible to set

[rules-users] Format of model for guvnor

2011-04-29 Thread azahra
I am trying to use Guvnor with an existing model. I am having class dependency issues even though I have created a jar with dependencies. I noticed that the demo package seems to have its model declared in some non-java way like so: declare LoanApplication amount: Integer approved: Boolean ... end