Re: [rules-users] Need Help: Error creating bean with name 'kbase'

2012-04-26 Thread singkamas
Based from the logs my error is on the autowiring of session and/or the knowledgebase. I am not sure what i did wrong. Here's my latest setup. ?xml version=1.0 encoding=UTF-8? beans:beans xmlns=http://www.springframework.org/schema/mvc; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

[rules-users] Using GUVNOR for FUSION RULES

2012-04-26 Thread Matteo Cusmai
Hi all, i am novice on GUVNOR, but i would like to define my fusion rules by graphical tool. An example of my rules is: rule radiation-event salience 10 no-loop when $obs: RadiationObservation( $obsLocation : location, value 10 ) over window:length(1) from entry-point

[rules-users] Setting variables in a stateless session

2012-04-26 Thread bardelman
hi folks, this is a simple question , i just want to understand how is it possible that a stateless session have a setGlobal() method as it does not maintain a state. What's the point ?! i also have some confusion between a request scope and a stateless session scope i think it s the same.. --

Re: [rules-users] Setting variables in a stateless session

2012-04-26 Thread Wolfgang Laun
On 26/04/2012, bardelman feki.ahmed@gmail.com wrote: hi folks, this is a simple question , i just want to understand how is it possible that a stateless session have a setGlobal() method as it does not maintain a state. What's the point ?! You don't keep state in globals with a stateful

Re: [rules-users] Using GUVNOR for FUSION RULES

2012-04-26 Thread Michael Anstis
Yes this is possible with Guvnor 5.2 onwards. The user-guide explains how to use the Guided Rule Editor (but not specifically CEP features). Read that and give it a try - it's reasonably intuitive (not an excuse for poor documentation though) and come back here with questions. With kind

Re: [rules-users] Guvnor 5.3 to Guvnor 5.2

2012-04-26 Thread Michael Anstis
The release notes will tell you. Any reason you need to go back to 5.2 from 5.3? If all your rules are plain text DRL an export from 5.3 and import into 5.2 might be OK. To be honest we don't check for compatibility between repository exports going backwards - obviously old versions can't

Re: [rules-users] Guvnor and Joda time

2012-04-26 Thread Toni Rikkola
I made a Jira for this. If possible, provide a small repository export that we can use for testing. https://issues.jboss.org/browse/GUVNOR-1877 Toni Rikkola On Apr 25, 2012, at 8:30 PM, Sean Su wrote: Do we support Joda time objects in Guvnor (5.3)? I did add joda time jar on the classpath

Re: [rules-users] Redundancy check option not working in Drools Verifier 5.4

2012-04-26 Thread worldofprasanna
Hi, Still am stuck up with this problem. I couldn t verify the redundancy in my rules using Drools Verifier. Can somebody out there help me ? Thanks, Prasanna. -- View this message in context:

Re: [rules-users] Guvnor and Joda time

2012-04-26 Thread Sean Su
sure. Attach to the jira or send to here? Thanks Sean Sent from my iPad On Apr 26, 2012, at 7:39 AM, Toni Rikkola toni.rikk...@gmail.com wrote: I made a Jira for this. If possible, provide a small repository export that we can use for testing. https://issues.jboss.org/browse/GUVNOR-1877

[rules-users] Guvnor guided editor and non argument constructor

2012-04-26 Thread Sean Su
It seems that the new fact created by the guided editor must be from the java class that has the default non argument constructor in Guvnor. There seems no way we can customize it to pass arguments in. This would force us to provide setters to the object. Is this a true statement? Thanks Sean

[rules-users] Contains an object

2012-04-26 Thread gboro54
Is there a way to use contains with an object? i.e obj:Object(collection contains SubObject(string=TST,int=1)) I know you could do a from but we are writing a DSL and it would be great if I could accomplish something like this above TIA! -- View this message in context:

Re: [rules-users] Contains an object

2012-04-26 Thread gboro54
I guess I could also have a method on my main object that takes parameters and just do a not null check... gboro54 wrote Is there a way to use contains with an object? i.e obj:Object(collection contains SubObject(string=TST,int=1)) I know you could do a from but we are writing a DSL

Re: [rules-users] Contains an object

2012-04-26 Thread gboro54
Yes I know that from can be used with DSL. I was just trying to think of a way to do something with a sub part of the object(i.e a dsl entry with a - ) laune wrote On 26/04/2012, gboro54 lt;gboro54@gt; wrote: Is there a way to use contains with an object? i.e Yes, but've got to follow

Re: [rules-users] Contains an object

2012-04-26 Thread Wolfgang Laun
On 26/04/2012, gboro54 gbor...@gmail.com wrote: Is there a way to use contains with an object? i.e Yes, but've got to follow Java's sytax rules (apart from using additional operators). obj:Object(collection contains SubObject(string=TST,int=1)) The second operand isn't a valid Java

Re: [rules-users] Using GUVNOR for FUSION RULES

2012-04-26 Thread Matteo Cusmai
Hi Mike, thanks for suggestion, but i have already read documentation. First of all, i cannot define over window:length(1) from entry-point lowLevelSensorStream. Do you help me to do this? Best Regards, Matteo. On Thu, Apr 26, 2012 at 11:32 AM, Michael Anstis michael.ans...@gmail.comwrote:

Re: [rules-users] Redundancy check option not working in Drools Verifier 5.4

2012-04-26 Thread Mark Proctor
On 26/04/2012 12:56, worldofprasanna wrote: Hi, Still am stuck up with this problem. I couldn t verify the redundancy in my rules using Drools Verifier. Can somebody out there help me ? Only toni knows that code. If it's not working, it's likely a bug. Please submit a unit test:

Re: [rules-users] Setting variables in a stateless session

2012-04-26 Thread Welsh, Armand
Think of a stateless knowledge session as being a statefull knowledge session, with the following adjustments: A stateless knowledge session cannot be manipulated prior the start of the session. A stateless knowledge session cannot be manipulated or queried after the end of the session. A

Re: [rules-users] Using GUVNOR for FUSION RULES

2012-04-26 Thread Michael Anstis
Sure. - Create New Rule - Add a condition (green + near WHEN) - Select From Entry Point - Type lowLevelSensorStream into TextBox - Click on click to add patterns... - Select your Fact Type (see * below) - In Over sliding window ListBox select Length - Type 1

Re: [rules-users] Guvnor guided editor and non argument constructor

2012-04-26 Thread Michael Anstis
Seems reasonable enough. On 26 April 2012 14:36, Sean Su sean.x...@gmail.com wrote: It seems that the new fact created by the guided editor must be from the java class that has the default non argument constructor in Guvnor. There seems no way we can customize it to pass arguments in. This

[rules-users] looking for advice

2012-04-26 Thread Bobby Richards
I have not yet determined how I want to implement my problem and was hoping to get some feedback. I am using drools to migrate the logic from my automated currency trading infrastructure. Each currency pair, i.e. eurusd has around 200 attributes associated with it. This includes range values

Re: [rules-users] Guvnor guided editor and non argument constructor

2012-04-26 Thread Vincent LEGENDRE
JavaBeans convention : all default constructible and plenty of setters (for writeable properties) and getters (for readeable properties) - Mail original - De: Michael Anstis michael.ans...@gmail.com À: Rules Users List rules-users@lists.jboss.org Envoyé: Jeudi 26 Avril 2012 15:40:27

Re: [rules-users] Guvnor guided editor and non argument constructor

2012-04-26 Thread Sean Su
What I am prototyping is part of the event processing (with or without fusion). I want to use the rules created by the Guvnor to create the new events. However, as you would understand, once the event has been created, it should not be modified as it happened in the past. So I am trying to avoid

Re: [rules-users] Guvnor guided editor and non argument constructor

2012-04-26 Thread Vincent LEGENDRE
Should use a DSL then. - Mail original - De: Sean Su sean.x...@gmail.com À: Rules Users List rules-users@lists.jboss.org Envoyé: Jeudi 26 Avril 2012 19:06:57 Objet: Re: [rules-users] Guvnor guided editor and non argument constructor What I am prototyping is part of the event

Re: [rules-users] looking for advice

2012-04-26 Thread slyfox
actually I think I just answered my own question. Every computation that I do is based on either quotes or previous closing values. Using fusion greatly simplifies everything and (I'm pretty sure) solves my problems. Am I correct? -- View this message in context:

[rules-users] DroolsjBPM Drop in Centre at JBoss World

2012-04-26 Thread Mark Proctor
http://blog.athico.com/2012/04/drools-drop-in-centre-at-jboss-world.html -- Now you have another reason to come to JBoss World http://www.redhat.com/summit/, as if you didn't already have too many on your list :) On Friday the 29th of June we'll have an all day drop in centre for Drools

Re: [rules-users] Guvnor guided editor and non argument constructor

2012-04-26 Thread Sean Su
Can DSL be presented as the decision table as well? Any examples if yes? Thanks. Sean Sent from my iPad On Apr 26, 2012, at 1:14 PM, Vincent LEGENDRE vincent.legen...@eurodecision.com wrote: Should use a DSL then. -- *De: *Sean Su sean.x...@gmail.com *À: *Rules

Re: [rules-users] Guvnor guided editor and non argument constructor

2012-04-26 Thread Michael Anstis
Yes, if you use 5.4 - this supports BRL fragments as columns. Rule Templates also support DSLs. HOWEVER - and this is probably an issue - DSLs in Guvnor currently only support literal values. So if you use a DSL in either a Decision Table or Rule Template you cannot specify different values in

Re: [rules-users] Guvnor guided editor and non argument constructor

2012-04-26 Thread Sean Su
Any time frame for the final release? I played with CR1 and it does not seem stable. Sent from my iPad On Apr 26, 2012, at 2:28 PM, Michael Anstis michael.ans...@gmail.com wrote: Yes, if you use 5.4 - this supports BRL fragments as columns. Rule Templates also support DSLs. HOWEVER - and this

Re: [rules-users] Guvnor guided editor and non argument constructor

2012-04-26 Thread Michael Anstis
Mark Proctor has mentioned it being within the next couple of weeks, so I'd assume before June. sent on the move On 26 Apr 2012 20:00, Sean Su sean.x...@gmail.com wrote: Any time frame for the final release? I played with CR1 and it does not seem stable. Sent from my iPad On Apr 26, 2012,

Re: [rules-users] Getting Error while using Drools 5.3.0

2012-04-26 Thread Wolfgang Laun
This rule (and note the correct spelling of modelYear with a capital 'Y', in contrast to your first post) compiles and executes correctly using 5.3.0. rule qr when info: CarRulesInfo( quoteRequest.VIN == null, quoteRequest.modelYear 1982 ) then System.out.println(

Re: [rules-users] 5.4.CR1 Guvnor bug?

2012-04-26 Thread Michael Anstis
OK. #1 is a bug. I have raised a JIRA - https://issues.jboss.org/browse/GUVNOR-1879. It is a bit of an edge case but I've fixed for 5.4.0.Final. #2 I'll attach the provided repository to the existing JIRA. Thanks, Mike On 26 April 2012 20:13, Sean Su sean.x...@gmail.com wrote: Attached is

Re: [rules-users] 5.4.CR1 Guvnor bug?

2012-04-26 Thread Sean Su
Thank Mike. I have a POC due by the end of May and these bugs/issues directly impact the output of it. Is there any service channel we can access (paid or free) that allows us to access the latest stable version, and possibly dedicated support? Sean Sent from my iPad On Apr 26, 2012, at 4:44

Re: [rules-users] 5.4.CR1 Guvnor bug?

2012-04-26 Thread Michael Anstis
Hi, I've had a look at #2 too. The problem is that you need to build the package before taking a snapshot. There was another underlying problem that meant you could not build your package either, but I've fixed that. Regarding the latest stable version: you can get the latest snapshot build

Re: [rules-users] Redundancy check option not working in Drools Verifier 5.4

2012-04-26 Thread worldofprasanna
Hi Mark, Thanks for the reply. And below is the issue which i have created. https://issues.jboss.org/browse/JBRULES-3484 Regards, Prasanna. -- View this message in context: http://drools.46999.n3.nabble.com/Redundancy-check-option-not-working-in-Drools-Verifier-5-4-tp3938055p3943464.html Sent