Re: [rules-users] when should we the not operator.

2011-08-04 Thread Esteban Aliverti
Which version of Drools are you using? How are you inserting the facts? How are you interacting with the knowledge session? The rule seems correct to me. Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.word

Re: [rules-users] how to update object modified by call to remote web service

2011-08-04 Thread Wolfgang Laun
There are two distinct ways of passing parameters: call by valueand call by reference . Passing Java objects blurs this distinction: the reference to the object is passed by value, but the called method can

Re: [rules-users] drools-server Vs drools-grid

2011-08-04 Thread DroolersEye
Mark, Thanks for the clarification, I really appreciate your quick reply. best regards, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/drools-server-Vs-drools-grid-tp3227204p3227357.html Sent from the Drools: User forum mailing list archive at Nabb

Re: [rules-users] drools-server Vs drools-grid

2011-08-04 Thread Mark Proctor
On 05/08/2011 01:48, DroolersEye wrote: > Hi, > > Please let me know what is the difference between drools-server and > drools-grid, when I read salaboy blog (great blog contains lots of useful > informations about drools, Hats off to him) and drools web site documents I > am not clear, Please prov

[rules-users] drools-server Vs drools-grid

2011-08-04 Thread DroolersEye
Hi, Please let me know what is the difference between drools-server and drools-grid, when I read salaboy blog (great blog contains lots of useful informations about drools, Hats off to him) and drools web site documents I am not clear, Please provide some abstract details about these two component

Re: [rules-users] how to update object modified by call to remote web service

2011-08-04 Thread lhorton
I now have a more complex problem to solve involving this RMI issue and would like some advice. I will state this as a simplified example to help explain the problem. Assume an object hierarchy: there is a Job, which has two attributes, a name and a list of Step objects. Each Step also has a na

Re: [rules-users] Guvnor and Uploaded Models

2011-08-04 Thread S.M.H.Jamali
Yes , I do all things you mention.  i am using defaultPackage and i set process id same as process name. i create one process (.bpmn) and its image (process-image.jbp) and a form for start process instance then i uploaded them to Guvnor. i create a Guided Rule in Guvnor that uses Uploaded Pojo M

Re: [rules-users] when should we the not operator.

2011-08-04 Thread arun1979
Any ideas, Thanks arun -- View this message in context: http://drools.46999.n3.nabble.com/when-should-we-the-not-operator-tp3225995p3226353.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-us

Re: [rules-users] when should we the not operator.

2011-08-04 Thread arun1979
I am using the stream mode as depicted by the code below *configuration.setOption(EventProcessingOption.STREAM); * Both EventX and EventY are of the same type. Actually my mistake the rule is like this declare EventX @role( event ) @timestamp( eventDate ) @expires( 2m ) end rule "t

Re: [rules-users] when should we the not operator.

2011-08-04 Thread Esteban Aliverti
2 questions: Is EventY also declared as event? Are you using STREAM mode? Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Thu, Aug 4, 2011 at 6:59 PM, arun1979 wrote: > Below is the code

[rules-users] when should we the not operator.

2011-08-04 Thread arun1979
Below is the code declare EventX @role( event ) @timestamp( eventDate ) @expires( 2m ) end rule "test rule" no-loop when event : EventX(eventType == 'XYZ', $oId :Id) not ( EventY(eventType == 'ABC', Id == $oId, this after[0s,8s] event)) then //fire the rule. code never reac

Re: [rules-users] Drools-Fusion : Inserting an Event in to an "entry-point" stream in the RHS of a rule?? Pls help

2011-08-04 Thread Mauricio Salatino
I need to check if that's the correct syntax, but in the right hand side as far as i know you can also do insert() and retract() that uses the kcontext to be executed. I think that is just syntax sugar from the parser side. 2011/8/4 Wolfgang Laun > > > 2011/8/4 Mauricio Salatino > >> there is

Re: [rules-users] Guvnor and Uploaded Models

2011-08-04 Thread Tihomir Surdilovic
On 8/4/11 5:12 AM, S.M.H.Jamali wrote: Hello All After upload a jar file which contains some java bean (Fact) to Guvnor , gwt-console don't detect my process definitions ! I have facts , processes and rules all in Guvnor and i build the defaultPackage successfully but gwt-console process list

Re: [rules-users] Drools-Fusion : Inserting an Event in to an "entry-point" stream in the RHS of a rule?? Pls help

2011-08-04 Thread Wolfgang Laun
2011/8/4 Mauricio Salatino > there is short way to do the same without using the kcontext: you should be > able to do something like: > > entry-point['Temporal Reasoning'].insert(evt); > That would surprise me, "entry-point" not being a valid Java identifier. The parser would see an expression.

Re: [rules-users] Drools-Fusion : Inserting an Event in to an "entry-point" stream in the RHS of a rule?? Pls help

2011-08-04 Thread Mauricio Salatino
there is short way to do the same without using the kcontext: you should be able to do something like: entry-point['Temporal Reasoning'].insert(evt); Please check the syntax in the docs. 2011/8/4 Esteban Aliverti > This should work: > > when >... > then > TransactionEvent evt = new

Re: [rules-users] Some basic queries

2011-08-04 Thread Wolfgang Laun
2011/8/4 Gaurav Silakari > Hi, > > I have some queries on Drools. These might be very basic but I need to get > them cleared. > > 1) Is it possible to bind the constructor name of java class(provided in > the 'import' syntax) with a bind variable in LHS of the rule > Whatever would you need the

Re: [rules-users] Java 1.4 Application

2011-08-04 Thread Swindells, Thomas
Putting it very bluntly in my opinion it is crazy to intentionally pick a very old version of a library because you are stuck on an ancient version of java. Generally migrating from Java 1.4 to a later version should be painless - there's a risk of issues with subtle changes in how java handled s

[rules-users] Some basic queries

2011-08-04 Thread Gaurav Silakari
Hi, I have some queries on Drools. These might be very basic but I need to get them cleared.  1) Is it possible to bind the constructor name of java class(provided in the 'import' syntax) with a bind variable in LHS of the rule2) Is it possible to call a parameterised (single parameter) method of a

Re: [rules-users] Java 1.4 Application

2011-08-04 Thread Sumeet Karawal
Thanks for the reply. Actually I have to work on an Application that is based on Java 1.4 and there haven't been any major changes in the code, currently business logic is managed through Java code only. But now we are trying to have a rule engine for the purpose. There will be a migration to Java

Re: [rules-users] Drools-Fusion : Inserting an Event in to an "entry-point" stream in the RHS of a rule?? Pls help

2011-08-04 Thread Esteban Aliverti
This should work: when ... then TransactionEvent evt = new TransactionEvent(); evt.setMessage("Temporal Reasoning"); kcontext.getKnowledgeRuntime().getWorkingMemoryEntryPoint("Temporal Reasoning").insert(evt); end Best Regards, Esteban Ali

[rules-users] Guvnor and Uploaded Models

2011-08-04 Thread S.M.H.Jamali
Hello All After upload a jar file which contains some java bean (Fact) to Guvnor , gwt-console don't detect my process definitions ! I have facts , processes and rules all in Guvnor and i build the defaultPackage successfully but gwt-console process list don't show my newly added process !

Re: [rules-users] Drools-Fusion : Inserting an Event in to an "entry-point" stream in the RHS of a rule?? Pls help

2011-08-04 Thread Amila Suriarachchi
This post has done some time ago. is there a solution for this currently? -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Fusion-Inserting-an-Event-in-to-an-entry-point-stream-in-the-RHS-of-a-rule-Pls-help-tp61920p3224799.html Sent from the Drools: User forum mailing lis

[rules-users] False error indication

2011-08-04 Thread Hezi Stern
I am using Drools 5.2.0 and I encountered the following problem perhaps there is a solution or workaround. I added a new operator called supersetOf which works fine. When I add a rule of the sort: when $myClass:MyClass(X supersetOf $z) then