Re: [rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Wolfgang Laun
On 22/02/2012, Edson Tirelli wrote: >If your use case somehow has "mutable" events, you can retract, change > the duration and reinsert. But mind the requirements of STREAM mode: Events in each stream must be time-ordered. I.e., inside a given stream, events that happened first must be insert

Re: [rules-users] Filtering inside the LHS

2012-02-22 Thread Mark Proctor
On 23/02/2012 03:38, Hezi Stern wrote: Hi All, I am seeking some kind of filtering (if statement) inside the LHS. I have the following example rule (note: $attributeFilteredSentences and $cmdescriptor are defined in the extends rule which is not presented): *rule*" choose message sentence e

Re: [rules-users] Loading rules performance problem in 5.4.0.Beta2 compare to 5.0.1

2012-02-22 Thread Mark Proctor
On 23/02/2012 03:29, erolagnab wrote: > Hi all, > > I'm planning to upgrade to Drools 5.4.0.Beta2 from 5.0.1. > However when testing the performance w.r.t rules loading, 5.4.0.Beta2 is not > only much slower (50% slower) but also eats more memory compare to 5.0.1. > > Is it something expected from

[rules-users] Getting Involved - Some help docs

2012-02-22 Thread Mark Proctor
I just updated the docs with a "Getting Involved" section, which covers questions we are asked often. The chapter provides high level info on how you sign up, submit issues, submit pull requests, best practice for tests etc. Please provide feedback, or pull requests, for improvements and this w

[rules-users] Filtering inside the LHS

2012-02-22 Thread Hezi Stern
Hi All, I am seeking some kind of filtering (if statement) inside the LHS. I have the following example rule (note: $attributeFilteredSentences and $cmdescriptor are defined in the extends rule which is not presented): rule " choose message sentence example" extends " attributeFilteredSent

[rules-users] Loading rules performance problem in 5.4.0.Beta2 compare to 5.0.1

2012-02-22 Thread erolagnab
Hi all, I'm planning to upgrade to Drools 5.4.0.Beta2 from 5.0.1. However when testing the performance w.r.t rules loading, 5.4.0.Beta2 is not only much slower (50% slower) but also eats more memory compare to 5.0.1. Is it something expected from 5.4.0.Beta2 to compensate other fixes/features?

Re: [rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Edson Tirelli
If your use case somehow has "mutable" events, you can retract, change the duration and reinsert. The engine uses optimizations for the temporal reasoning that are based on the fact that events should be immutable. That is why the engine "resolves" the timestamp/duration attributes at insert tim

Re: [rules-users] jboss tohu

2012-02-22 Thread Salaboy
As far as I know tohu is abandoned, we were working in a new experimental version but there is nothing finished yet. My two cents - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Mauricio "Salaboy" Salatino - On 22/02/2012, at 21

[rules-users] jboss tohu

2012-02-22 Thread olfa
hi, can you help me to install tohu and thanks sir? -- View this message in context: http://drools.46999.n3.nabble.com/jboss-tohu-tp3767998p3767998.html Sent from the Drools: User forum mailing list archive at Nabble.com.___ rules-users mailing list r

Re: [rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Matteo Cusmai
Hi Edson, so, when i want modify an event, i could do as follow: - clone event; - change the duration - retract the previuos event - insert the new event Is it right? Bye bye, Matteo. 2012/2/22 Edson Tirelli > >Unfortunately you can't update event durations or timestamp. Even

Re: [rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Edson Tirelli
Unfortunately you can't update event durations or timestamp. Events are supposed to represent things that happened and as so, are immutable (other than data enrichment). If an event representation is no longer true, that event has to be retracted. Most common case is when you are dealing with at

Re: [rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Matteo Cusmai
Hi Wolfgang, this is an extract of drl file: declare GasObservation @role(event) @startTimestamp(timestamp) @expires( 10s ) @duration(duration) end declare GasEvent @startTimestamp(timestampDate) @role(event) @duration(duration) end rule "gas1-event" no-loop w

Re: [rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Wolfgang Laun
A minimum but complete set of *.java and *.drl files would help. -W 2012/2/22 Matteo Cusmai > > Hi all, > i am using Drools Fusion in multi sensor data fusion system. I have some > rules that generate a new event when some situations occur. But from the > other hand, i would like to update the e

[rules-users] DROOLS Tohu

2012-02-22 Thread olfa
HI, i use drools tohu to create questionnaire for patients. can you help me install it and give me some tutorial? thanks a lot -- View this message in context: http://drools.46999.n3.nabble.com/DROOLS-Tohu-tp3767586p3767586.html Sent from the Drools: User forum mailing list archive at Nabble.c

[rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Matteo Cusmai
Hi all, i am using Drools Fusion in multi sensor data fusion system. I have some rules that generate a new event when some situations occur. But from the other hand, i would like to update the event, when i understand that new sensor observation is referring to the same event. I have my Event clazz

Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-22 Thread Esteban Aliverti
Are you sure that the binary package was also created with the same drools version you are using in your tests? Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Wed, Feb 22, 2012 at 7:39 PM,

Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-22 Thread Hrumph
I have a 5.4.0-SNAPSHOT version with your changes built and made the KnowledgeAgentConfiguration change you suggested. My test code is now like this: KnowledgeAgentConfiguration aconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration(); aconf.setProperty("drools.agent.useK

Re: [rules-users] Bug with BatchExecutionHelper when using Log4j rootlogger?

2012-02-22 Thread dunnlow
answered: http://drools.46999.n3.nabble.com/Can-you-remove-logging-information-from-BatchExecutionCommand-td3377109.html -- View this message in context: http://drools.46999.n3.nabble.com/Bug-with-BatchExecutionHelper-when-using-Log4j-rootlogger-tp3293188p3767382.html Sent from the Drools: User f

Re: [rules-users] Yet another Schema question(s)...

2012-02-22 Thread dunnlow
OK, so I found the file here: http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.drools/drools-spring/5.1.0.M2/org/drools/container/spring/drools-service-spring.xsd So, I guess my first question above can be change to, "Is this the most recent version?" Questi

[rules-users] Yet another Schema question(s)...

2012-02-22 Thread dunnlow
Hi, I am configuring a drools server via spring and I need to execute a startup-command (as shown here http://lucazamador.wordpress.com/2010/05/27/drools-server-spring-configuration/). Seems straight forward until I started looking for .xsd files (specifically for http://drools.org/schema/drools

Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-22 Thread Hrumph
Thanks – I will try it this morning. Herm From: Esteban [via Drools] [mailto:ml-node+s46999n3765911...@n3.nabble.com] Sent: Wednesday, February 22, 2012 1:55 AM To: Herman Post Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources I forgot to mention that

Re: [rules-users] Declared model and drools.agent.newInstance

2012-02-22 Thread juankera
Thanks Esteban. I've tried a couple of workarounds, but it's still not working. :( -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Declared-model-and-drools-agent-newInstance-tp3763280p374.html Sent from the Drools: User forum mailing list archive at Nabble.co

Re: [rules-users] Guvnor 5.4.0.Beta2 launch Error.

2012-02-22 Thread online . regos
Hi Esteban, According to the tomcat log, guvnor was trying to connect to derby which I don't use, so it might have been caused by a preset condition in guvnor beta2 version? I scrapped my tomcat 6 and tried running it with Tomcat 7, this worked. Thanks. On 21/02/2012, at 6:30 PM, Esteban Alivert

Re: [rules-users] MVEL Expression causing NPE in MVEL optimizer

2012-02-22 Thread womuji
I found the issue: I have to set all the globals before inserting any facts: cmds.add(CommandFactory.newSetGlobal( "addressManager", addressManager, true)); ... cmds.add(CommandFactory.newInsert(event)); -- View this message in context: http://drools.46999.n3.nabble.com/MVEL-Expression-causin

Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-22 Thread Esteban Aliverti
I forgot to mention that you will have to change your code a little bit. Instead of passing a KnowledgeBuilderConfiguration to the agent, you will need to add a configuration option to the KnowledgeAgentConfiguration object your are using: aconf.setProperty("drools.agent.useKBaseClassLoaderForComp

[rules-users] Problem while running the project

2012-02-22 Thread arup
Hi all, when i deployed my EAR in the websphere application server it's deployed successfully without any errors. But when i'm trying to run my project by passing a request xml i'm getting some errors as shown below. I'm using drools 5.1 and WAS 6.1. java.lang.UnsupportedClassVersionError: (com/i

Re: [rules-users] Loop Drools on Multi Element

2012-02-22 Thread laune
Using forall isn't so complicated. You can use the simplified form, where the condition to be satisfied is written in the pattern selecting the domain. rule setPriority when $order: OrderType( priority != "high" ) forall ( OrderLineType( quantity > 2 ) from $order.lineItem ) then modi