Re: [rules-users] drools-server

2011-05-19 Thread Abhay B. Chaware
I tried the latest one on tomcat.. drools-camel-server-5.2.0M2.war To get things to work to some extent, I had to do this - 1. change the rsServer address from "/rest" to "/kservice/rest" in camel-server.xml 2. change the route from "direct://kservice" to "direct://kservice/rest" camel-client.x

Re: [rules-users] DSL Enumeration / Decision Table ?

2011-05-19 Thread Wolfgang Laun
Template parsing and expansion doesn't care much about the text between the overall delimiting keywords; basically it is just a macro processor. This means that you could very well expand a template containing DSLR rules, and feed the result as DSLR to the Builder. Notice that template expansion c

Re: [rules-users] change of Rules Dyanmically

2011-05-19 Thread Saurabh
Hi mark , Currently i am doing like that I am changing the drl file at runtime . I get all the Objects from memory into one collection , and reinsert that with new session . but i am facing two problems : 1- First problem is that it will refire for already fired Object 2- if my fact class i

Re: [rules-users] Problems with Drools 5.2.0.M1 and IE7?

2011-05-19 Thread Jervis Liu
On 2011/5/19 20:58, Steve Reeves wrote: > Hi Jervis - I did attach a screenshot for IE8 and IE7 that show up in the > Nabble view - currently, it says "Post not accepted by mailing list" on it, > so let me know if you can't see it. I am afraid I can not see it. You can attache the screenshot to thi

Re: [rules-users] DSL Enumeration / Decision Table ?

2011-05-19 Thread matiasklein
Thank you. I will read up more about templates. Do you know if it is possible to use a DSL with templates? Thanks Again! From: manstis [via Drools] [ml-node+2961816-1038471448-401...@n3.nabble.com] Sent: Thursday, May 19, 2011 11:24 AM To: Matias Klein S

Re: [rules-users] DSL Enumeration / Decision Table ?

2011-05-19 Thread matiasklein
What if I only have a couple hundred rules that each examine 100-200 codes each, and I also have a server with 256 GB of RAM? Is Drools a suitable solution for me? From: drdaveg [via Drools] [ml-node+2962646-565963607-401...@n3.nabble.com] Sent: Thursday,

[rules-users] Guvnor test scenarios for rules that use globals

2011-05-19 Thread Lisa Horton
In Guvnor 5.1 I have several rules that invoke services defined as globals. Rules that invoke methods on these globals run OK when deployed, but a test scenario that triggers such a rule gets an exception. For example, with a global named "logger" a rule that has in its THEN clause:

[rules-users] Guvnor test scenarios public no-arg constructor

2011-05-19 Thread Lisa Horton
It appears that in order to be used in a Guvnor test scenario, an class must have a public no-argument constructor. Is this true? And if so, is there a workaround for classes that have a private constructor (other than changing the object model)? _

Re: [rules-users] DSL Enumeration / Decision Table ?

2011-05-19 Thread drdaveg
Your approach overall may also be a mistake. I've built DROOLS systems looking at things like codes for thousands of entries. If you have a problem with thousands of rules that examine codes your JVM will run out of memory. -- View this message in context: http://drools.46999.n3.nabble.com/DSL-

Re: [rules-users] DSL Enumeration / Decision Table ?

2011-05-19 Thread Michael Anstis
This would appear a (near) perfect use-case for "Templates". Have a read of the documentation and examples, it should become quite clear thereafter :) On 19 May 2011 15:46, matiasklein wrote: > Hi, > > I have a DSLR that reads: > > There is an event with a code of "93000" > > This translates vi

[rules-users] DSL Enumeration / Decision Table ?

2011-05-19 Thread matiasklein
Hi, I have a DSLR that reads: There is an event with a code of "93000" This translates via DSL to: [when]There is an event with a code {Code}=$event : Event(Code == {Code}) Unfortunately, I have to build many rules that are exactly the same as this, but with different qualifying codes (i.e. ru

Re: [rules-users] Look up for KnowledgeAgent

2011-05-19 Thread Esteban Aliverti
What about storing an instance of KnowledgeAgent in Application/Session Context of you application? I mean, drools doesn't have any registry where you can register stuff. Another solution could be to have a singleton class holding the agent instance. Best Regards,

Re: [rules-users] Effect of KnowledgeAgent reload on currently running rules

2011-05-19 Thread Jamie
Thanks, Esteban. I'm going to need to do some testing. I'll post back my findings... -- Jamie From: Esteban [via Drools] [mailto:ml-node+2961373-771292982-397...@n3.nabble.com] Sent: Thursday, May 19, 2011 9:41 AM To: Jamie Shaw Subject: Re: [rules-users] Effec

Re: [rules-users] Effect of KnowledgeAgent reload on currently running rules

2011-05-19 Thread Esteban Aliverti
I'm not sure how the rete is modified and if the modifications are synchronized with any ongoing operation. If you want to make sure that the rete is modified when your application is in a "safe-point", then you will need to turn off ResourceChangeMonitor service and call its scan() method manually

Re: [rules-users] drools-server

2011-05-19 Thread Mauricio Salatino
You can find the latest snapshots here: https://hudson.jboss.org/hudson/view/Drools%20jBPM/job/droolsjbpm-integration/lastSuccessfulBuild/artifact/droolsjbpm-integration-distribution/target/ because they are snapshot you should update to 5.3.0-SNAPSHOT, or wait until the 5.2.0 release is published

Re: [rules-users] Problems with Drools 5.2.0.M1 and IE7?

2011-05-19 Thread Steve Reeves
Hi Jervis - I did attach a screenshot for IE8 and IE7 that show up in the Nabble view - currently, it says "Post not accepted by mailing list" on it, so let me know if you can't see it. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Problems-with-Drools-5-2-0-M1-an

Re: [rules-users] drools-server

2011-05-19 Thread Abhay B. Chaware
Where can I find the war file download ? is it packed in one of the downloads under "Drools 5.2.0.M2 Downloads" on http://www.jboss.org/drools/downloads ? From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Maurici

Re: [rules-users] change of Rules Dyanmically

2011-05-19 Thread Mark Proctor
On 19/05/2011 07:32, saurabh maheshwari wrote: HI , I want to change rules dynamically , but not want to retract the objects from memory. I am using one fact class which is also created dynamically. is it possible to do this ? Please help me. yes Thanks , saurabh _

Re: [rules-users] Drools and threads

2011-05-19 Thread Wolfgang Laun
2011/5/19 Abhay B. Chaware > Correct. But does it then internally build the DRL into binary/compiled > format and then uses it for updating knowledge base ? > > > Yes - Builder's output is always the same. -W > -- > > *From:* rules-users-boun...@lists.jboss.org [

Re: [rules-users] Is it possible to affect load order of rules?

2011-05-19 Thread Wolfgang Laun
int nFired = kSession.fireAllRules( 1 ); boolean success = nFired == 1; -W 2011/5/19 Martin, Matthias > Hello, > > > > in our project we’ve to know, which rules have already been checked, > regardless whether or not the rule gets activated and hence put on the > agenda. Is there any possibility