Re: [rules-users] temporal operator includes not working

2011-07-22 Thread Wolfgang Laun
Interval-based events must have a property for their duration (in ms), not the end time. @duration(duration) duration : long -W 2011/7/22 Neelesh Deo Dani neelesh...@yahoo.co.in Hi, I've following event declarations and rule: declare Event @role(event) @timestamp(datetime)

Re: [rules-users] Dynamic facts

2011-07-22 Thread Marc Heinz
On 19 July 2011 13:42, Marc Heinz marc.he...@no-log.org wrote: So, despite I have only updated one attribute of the fact (the age of a Person), all rules have been fired again, even if they had nothing to do with the said attribute, which could possibly produce a huge overhead. I maybe

Re: [rules-users] Dynamic facts

2011-07-22 Thread Wolfgang Laun
On 22 July 2011 08:34, Marc Heinz marc.he...@no-log.org wrote: On 19 July 2011 13:42, Marc Heinz marc.he...@no-log.org wrote: So, despite I have only updated one attribute of the fact (the age of a Person), all rules have been fired again, even if they had nothing to do with the said

Re: [rules-users] temporal operator includes not working

2011-07-22 Thread Neelesh Deo Dani
Thanks Wolfgang! It worked. --- On Fri, 22/7/11, Wolfgang Laun wolfgang.l...@gmail.com wrote: From: Wolfgang Laun wolfgang.l...@gmail.com Subject: Re: [rules-users] temporal operator includes not working To: Rules Users List rules-users@lists.jboss.org Date: Friday, 22 July, 2011, 11:29 AM

Re: [rules-users] How to reuse a result of a rule in an other rule

2011-07-22 Thread Swindells, Thomas
The latter approach is particularly powerful we have a very simple but amazingly flexible class called Affirmation which just have 3 fields - String name, Object subject, Object value. This however gives most flexibility that you need Eg rule Hungry when $person :

Re: [rules-users] Dynamic facts

2011-07-22 Thread Swindells, Thomas
My advice for designing datamodels and working with drools is to think of it as a database and follow standard database normalization procedures. Essentially drools in an in memory database which has a custom query and trigger syntax implemented in a very efficient manner! Each Object type is

[rules-users] Eclipse Java compliance

2011-07-22 Thread gab
Hi, I'm new to Drools. I searched on the topics but I couldn't find anything useful. --- My environment is Windows 7 64bit Java 1.6 jdk Eclipse SDK 3.6 JBoss Tools 3.2.0 with latest drools plugin. Drools 5.2 runtime When I try to create a new Drools Project from eclipse

[rules-users] Drools 5.0 location

2011-07-22 Thread Gaurav Silakari
Hi All,I wanted to download Drools 5.0 version but at the download site of JBoss I am getting the option for Drools 5.2.0 only. Please suggest me where I can find Drools 5.0.Thanks Regards,Gaurav SilakariMailto: gaurav.silak...@tcs.com=-=-=Notice: The information contained in

Re: [rules-users] Drools 5.0 location

2011-07-22 Thread Geoffrey De Smet
The jars are on the jboss maven repository (see downloads page for link). The community zips are still available on downloads.jboss.org server, but apparently there's no archive site with a list of links to those URL's, we need to find a way to have that available automatically. I 'll ask if

[rules-users] evaluating different aspects of the same event

2011-07-22 Thread Andre
i want to accumulate on different properties of my event. i have 3 rules which all work in the same manner , accumulate on that event and then work with that result my rules are all like this rule Request counting Subject By Id when $set: Set() from accumulate($neu :

Re: [rules-users] evaluating different aspects of the same event

2011-07-22 Thread Wolfgang Laun
There is no way of telling how the A, B, C of your data relates to the rule. Nothing there suggests that rules 1, 2, 3 select A, B, C, respectively. -W On 22 July 2011 14:41, Andre morpheusan...@web.de wrote: i want to accumulate on different properties of my event. i have 3 rules which all

[rules-users] JBPM processes in Guvnor

2011-07-22 Thread DonC
Hi, I'm pretty new to guvnor and jbpm. I have guvnor 5.2.0 final running, I'm trying to extract the processes attached to a package using the KnowledgeAgent api. I've successfully managed to create a process under the mortgages package, however when I build a snapshot of the package the

Re: [rules-users] Drools 5.0 location

2011-07-22 Thread Geoffrey De Smet
They fixed it :) Archives are here: http://download.jboss.org/drools/release/ Op 22-07-11 14:25, Geoffrey De Smet schreef: The jars are on the jboss maven repository (see downloads page for link). The community zips are still available on downloads.jboss.org server, but apparently there's no

Re: [rules-users] evaluating different aspects of the same event

2011-07-22 Thread Andre
so the only possibilty would be to insert new events which signals that rule x has been fired ..? -- View this message in context: http://drools.46999.n3.nabble.com/evaluating-different-aspects-of-the-same-event-tp3191232p3191636.html Sent from the Drools: User forum mailing list archive at

Re: [rules-users] evaluating different aspects of the same event

2011-07-22 Thread Wolfgang Laun
On 22 July 2011 17:07, Andre morpheusan...@web.de wrote: so the only possibilty would be to insert new events which signals that rule x has been fired ..? How is this related to the accumulate A/B/C problem? -W -- View this message in context:

Re: [rules-users] Dynamic facts

2011-07-22 Thread Mark Proctor
On 19/07/2011 06:07, Marc Heinz wrote: Hello everyone, I need some enlightening about Drools dynamic facts (a term used in the documentation, for facts that could be updated from outside the rule engine). The current documentation always list the insert method of a StatefulKnowledgeSession

Re: [rules-users] How to write rules with optional parts?

2011-07-22 Thread Edward Johnson
Thanks for your help. I'll look in to doing it as a state machine, perhaps I am making things more complex than they really are. Edward. - Original Message - In this particular case you can do $p1:person (name==Alice) $p3:person (name==David, this after[0,1] $p1) not person

Re: [rules-users] Dynamic facts

2011-07-22 Thread Mark Proctor
On 22/07/2011 17:17, Mark Proctor wrote: On 19/07/2011 06:07, Marc Heinz wrote: Hello everyone, I need some enlightening about Drools dynamic facts (a term used in the documentation, for facts that could be updated from outside the rule engine). The current documentation always list the

Re: [rules-users] Dynamic facts

2011-07-22 Thread Mark Proctor
On 19/07/2011 14:17, Vincent Legendre wrote: AFAIK, there never was any logic for restricting updates of the Rete structures according to individual field-oriented change notifications. As far I remember, JRules does. JRules does not do slot specific. Jess does and Clips will if you use it's

Re: [rules-users] How to reuse a result of a rule in an other rule

2011-07-22 Thread Sachin Thapa
Most important thing, the attributes of result object must satisfy the firing condition of rule in which you want to use the result. http://technologistics.blogspot.com/ -- View this message in context:

Re: [rules-users] Problem with Guvnor 5.1.1, save frequently does not save...

2011-07-22 Thread sergio_mendez
Hi David, i'm new in Drools Guvnor, i'm using guvnor 5.2 and JBoss AS 6.0 and i've the same problem. didi solve it? best regards. Sergio -- View this message in context: http://drools.46999.n3.nabble.com/Problem-with-Guvnor-5-1-1-save-frequently-does-not-save-tp1558397p3192164.html Sent

Re: [rules-users] How to reuse a result of a rule in an other rule

2011-07-22 Thread Satya Manchambhatla
Can you just insert the result into working memory? On Fri, Jul 22, 2011 at 11:08 AM, Sachin Thapa sachin...@yahoo.com wrote: Most important thing, the attributes of result object must satisfy the firing condition of rule in which you want to use the result.

Re: [rules-users] Dynamic facts

2011-07-22 Thread Edson Tirelli
Ok, I added documentation for this and all other predefined type and field annotations to the main drools expert document. Edson 2011/7/22 Mark Proctor mproc...@codehaus.org On 19/07/2011 06:07, Marc Heinz wrote: Hello everyone, I need some enlightening about Drools dynamic

Re: [rules-users] how to invoke rest service on drools server with serialized objects

2011-07-22 Thread lhorton
finally realized the answer to my question is you can't. In case there are other newbies to Camel and Rest out there, I was able to run against drools-server using xstream with the following code: import org.apache.commons.httpclient.Header; import org.apache.commons.httpclient.HttpClient;

[rules-users] drools-server empty response body

2011-07-22 Thread lhorton
I am new to calling Rest services and using drools-server. I configured the camel-server.xml and knowledge-services.xml rest service to use xstream marshalling, added my rules and pojo model to the war, and deployed it on tomcat. I wrote a java http client to run the rest service. This is the

[rules-users] counting Facts

2011-07-22 Thread pamerida
Hi everyone, I need to perform a count of facts, but my problem is that the facts are nested inside other facts My model would be something like this a class called Cuscar that is like the main class that contains the other facts inside the class Cuscar I have a list called segmentGroup7

Re: [rules-users] drools-server empty response body

2011-07-22 Thread lhorton
also realized i missed a bit of the command xml when i pasted it above. at the top should be: batch-execution lookup=workflowKnowledgeSession -- View this message in context: http://drools.46999.n3.nabble.com/drools-server-empty-response-body-tp3192475p3192518.html Sent from the Drools: User

Re: [rules-users] drools-server empty response body

2011-07-22 Thread lhorton
I'm answering my own questions today... the solution here was that the insert object command MUST have an outIdentifier or results won't be returned. it doesn't work to just set the returnObject boolean to true (true is supposed to be the default). Once I set the outIdentifier when i created

Re: [rules-users] order of injected events

2011-07-22 Thread Chris Richmond
Wolfgang, Thanks very much for that explanation, it cleared up many questions. ...If the order of your concurrently arriving events is essential, you may have to insert an ordinal as a property... Can you expand on this idea or in an general practice for handling real time streams of data

[rules-users] Editing Changeset xml file by Guvnor 5.1

2011-07-22 Thread DroolersEye
Hi, I am trying to connect changeset xml file located in the remote Guvnor 5.1 running in WAS7 server in a solaris box. When I try to integrate the Guvnor using the KnowledgeAgent+Changeset but it fails to read the changeset xml. It throws parser exception and 401 exception. Remote Guvnor