Re: [rules-users] Pattern order affects activation

2013-02-14 Thread Wolfgang Laun
On 14/02/2013, AlesD wrote: > Thanks, > > thats it. I did not know that the variable binding has to precede > variable > use. It makes sense, but with all the "declarative vs. procedural" > reasoning > I simply missed it. It is not stated explicitly in the manual. Indeed, but how did you ever c

[rules-users] Guvnor Calendars

2013-02-14 Thread Anton Nikulin
Hi I have a problem with calendars in guvnor. I want to use calendars feature in my rules and I've defined such rule in Guvnor: rule "CalendarTest" calendars "AUD Home Loans" no-loop true dialect "mvel" when then System.out.println("CALENDAR IS

Re: [rules-users] NullPointerException when using RuleAgent

2013-02-14 Thread Davide Sottara
Which version are you using? The RuleAgent is not part of the public API and has not been developed for some time.. could you please use the KnowledgeAgent instead (see section 3.2.6 in the manual), and let us know if you still have problems? Thanks Davide -- View this message in context: http:

Re: [rules-users] Pattern order affects activation

2013-02-14 Thread AlesD
Thanks, thats it. I did not know that the variable binding has to precede variable use. It makes sense, but with all the "declarative vs. procedural" reasoning I simply missed it. It is not stated explicitly in the manual. Ales -- View this message in context: http://drools.46999.n3.nabble.

[rules-users] NullPointerException when using RuleAgent

2013-02-14 Thread IPatel
Hi, I have been trying to write the following code to automatically deploy any changes made to the rules. However i am getting nullpointerexception errors. I see many posts regarding this topic and have tried different options but the error won;t go away. public static void main(String[] args) {

Re: [rules-users] Pattern order affects activation

2013-02-14 Thread Wolfgang Laun
FWIW, the corrected rule works, irrespective of the position of the "exists" CE. rule killphone when exists Customer() $unused: Phone( $value: value ) not Customer( phone == $value ) then retract( $unused ); end -W On 14/02/2013, Wolfgang Laun wrote: > Please restate your probl

Re: [rules-users] Pattern order affects activation

2013-02-14 Thread Wolfgang Laun
Please restate your problem, correcting (see below)... On 14/02/2013, DOLECEK Ales wrote: > rule "Remove unsued phones" > when > exists Customer() > not Customer(phone == $value) > $unused: Phone($value: value) > then > retract(

[rules-users] RuleML 2013: 7th International Web Rule Symposium - Extended Call for Papers, Demos and Phd Papers

2013-02-14 Thread Adrian Paschke
Abstract/Paper Deadline Extended to Feb. 21st/Feb. 28th ++ Call for Papers, Call for Demos, Call for PhD Papers RuleML 2013: 7th International Web Rule Symposium University of Washington, Seattle,USA, July 11-13, 2013 http://2013.ruleml.org The RuleML2013 Conference is also hosting:

[rules-users] Pattern order affects activation

2013-02-14 Thread DOLECEK Ales
Hello, I have following rule: rule "Remove unsued phones" when exists Customer() not Customer(phone == $value) $unused: Phone($value: value) then retract($unused); end There might be multiple Customer and Phone fac

Re: [rules-users] Stateless or stateful knowledge session in drools server

2013-02-14 Thread Stephen Masters
I can't say much about drools server. I went for a Spring web app wrapping a stateful session, and exposing itself to .NET applications via a SOAP API and a bit of REST. But that's cos I like Spring. :) If you do need to work with a stateful session, you shouldn't need to 'isolate' any data as

[rules-users] Stateless or stateful knowledge session in drools server

2013-02-14 Thread Tim Slonaker
Hello all, I am new to drools. My company is looking into switching from a commercial rule engine to drools. Our existing codebase is .net not Java. We are trying to integrate drools into our existing .net application by calling into a drools-server using it’s restful interface. Our curren

Re: [rules-users] Evaluate rules for multiple facts of the same type within a StateuflSession

2013-02-14 Thread Cotton, Ben
> We've been through this kind of discussion time and again... Indeed you have. I remember when this forum helped me with my exact same misunderstanding when I was struggling with my very first HelloWorld.DRL. Thank you to this DROOLs forum (and especially Wolfgang) for being so gentle and

Re: [rules-users] Guvnor Web-guided DecisionTable - calls function with parameters from cells values

2013-02-14 Thread nbe42
Thanks for your reply. Finally I managing by using a free DRL condition form like that : eval(myCal.isInInterval("@{minInterval}", "@{maxInterval}")) The Keyword @{var} has the effect of a Template Key. It's your response from your JIRA (GUVNOR-1431) that helped me =D Thank you again! Keep g

[rules-users] Drools upgrade from 5.1.0 to 5.5.0.Final

2013-02-14 Thread SuchitraKrishna
Hello, I am trying to upgrade our project to jdk7 and in the process, upgrading from drools 5.1.0 to drools 5.5.0.Final and I have a few questions. 1. Is 5.5.0.Final compatible with jdk7 and is it the production version? 2. When I compile our code with 5.5.0.Final, I see the following com

Re: [rules-users] Anyone using JSR94?

2013-02-14 Thread Mark Proctor
On 14 Feb 2013, at 14:14, Stephen Masters wrote: > I don't use the JSR-94 API, but I'd go along with Ben regarding its value in > getting the product into businesses. Pre-sales meetings tend to involve the > sales guys asking what other products are being evaluated, and you can pretty > much

Re: [rules-users] Anyone using JSR94?

2013-02-14 Thread Mark Proctor
We are refactoring internal api's, JSR94 will need to move public apis. So we have to decide if it's worth spending the week refactoring it, or whether we just remove it. Our resources are finite, so it's always good to review what is really necessary. It's about the same amount of time to add

Re: [rules-users] Anyone using JSR94?

2013-02-14 Thread Stephen Masters
I don't use the JSR-94 API, but I'd go along with Ben regarding its value in getting the product into businesses. Pre-sales meetings tend to involve the sales guys asking what other products are being evaluated, and you can pretty much guarantee that the competition are going to point out that D

Re: [rules-users] What is the correct approach towards using Drools?

2013-02-14 Thread Wolfgang Laun
On 14/02/2013, mohdejaz74 wrote: > Actually stateful session is being used. Everytime a request is served, a > new > stateful session is created and then at the end it is destroyed. Fact (only > 1 tree-like object) is loaded into session. The results of executing rules > is captured in a list obje

Re: [rules-users] Query on web services and database stuff

2013-02-14 Thread Jeremy Ary
If you consider Drools Expert (the core engine) as a component, then certainly, yes, it can be integrated into a system that both utilizes persistence and communicates via web services in various ways respectively. As for working examples, I'm of the opinion that would be stretching the point of th

Re: [rules-users] Drools Planner: contraint for rest time between shift

2013-02-14 Thread fdauffy
Hello I worked on adding a shift date start and a shift date time. I did it in Shift.java file, I think that's the right place. Then in EmployeePanel.java, I calculate the value for these two fields (I think there is no way to assign them directly with a link between Shiftype and Shift. Then I tri

Re: [rules-users] Anyone using JSR94?

2013-02-14 Thread ben.cot...@alumni.rutgers.edu
Even if you find evidence that nobody is using JSR-94, I still would not nuke it. Technically, it is /the/ Java standard API for inter-operating w/ Rules Engine providers. Every project under the JBoss brand seems to prioritize the merits of its platform stack being 100% open-source and 10

Re: [rules-users] What is the correct approach towards using Drools?

2013-02-14 Thread mohdejaz74
Actually stateful session is being used. Everytime a request is served, a new stateful session is created and then at the end it is destroyed. Fact (only 1 tree-like object) is loaded into session. The results of executing rules is captured in a list object. So do you guys think it is OK to follo

Re: [rules-users] What is the correct approach towards using Drools?

2013-02-14 Thread Matteo Cusmai
Yeah, you are right, i was talking about fact events. It seemed to me that the use case described by Ejaz was in streaming context. On Thu, Feb 14, 2013 at 11:34 AM, Wolfgang Laun wrote: > On 14/02/2013, Matteo Cusmai wrote: > > The facts should be immutable, so you should remove them and inser

Re: [rules-users] What is the correct approach towards using Drools?

2013-02-14 Thread Wolfgang Laun
On 14/02/2013, Matteo Cusmai wrote: > The facts should be immutable, so you should remove them and insert again > when they change. > If your facts change often, you have to consider to use fusion where your > facts will be events. This is a very restricted view of what facts and events should be

Re: [rules-users] Guvnor Web-guided DecisionTable - calls function with parameters from cells values

2013-02-14 Thread Michael Anstis
You could try using a combination of BRL Fragments and DSL. Define your DSL as the expression: [when]My calendar is between {p1} and {p2)=eval( myCal.isInInterval("{p1}", {p2}") and use the DSL in a BRL Fragment. With kind regards, Mike On 14 February 2013 09:13, nbe42 wrote: > Hello, > > I'm

Re: [rules-users] Questions about Drools runtime & Guvnor

2013-02-14 Thread Michael Anstis
Hello, >Q1 : How can Drools runtime (Knowledge builder / base) gets/collects *.brl, .drl files from Guvnor (using REST api, ) ? It should be possible to use KnowledgeBuilder with URL resources to retrieve *source* from Guvnor's REST API. Many Guvnor assets are stored in an internal format (BR

[rules-users] Guvnor Web-guided DecisionTable - calls function with parameters from cells values

2013-02-14 Thread nbe42
Hello, I'm pretty new with Guvnor (5.5) and I need some help to write a rule. I have to write a rule with the web guided decision table editor. I have in my working memory a calendar object with a function for verify if the current date is in an time interval. Now, I'm using a predicate and wr

Re: [rules-users] Query on web services and database stuff

2013-02-14 Thread Michael Anstis
Firstly a correction. Drools "rule engine" otherwise known as Drools Expert does not use JCR by default. Guvnor (Drools rule authoring and management web applicafion) does use JCR as its persistent store. JCR is better thought of as a hierarchical data store than a (R)DBMS. That said Drools Exper