Re: [rules-users] What's wrong with this rule

2010-10-29 Thread Wolfgang Laun
System.out.println( Test no B ); session = kBase.newStatefulKnowledgeSession( config, null ); clock = session.getSessionClock(); session.insert( new Player( 1 ) ); clock.advanceTime( 3*60, TimeUnit.SECONDS ); session.fireAllRules(); session.dispose(); The rule fires

Re: [rules-users] How to check for errors when creating a kBase using kAgent, kAgentConfiguration and kBaseConfiguration

2010-10-29 Thread esteban.alive...@gmail.com
Hi, If you are using 5.1 or greater, you can use a KnowledgeAgentEventListener to be notified when resource's compilation fails. You can create your own implementation of KnowledgeAgentEventListener, or you can use DefaultKnowledgeAgentEventListener and override just the methods you need:

Re: [rules-users] no visitor implementation for : class org.drools.rule.TypeDeclaration

2010-10-29 Thread esteban.alive...@gmail.com
Honestly, I didn't have time to take a look at it :( Could you please provide me a simple test project where I can see this issue? Best, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/10/24 Tina

Re: [rules-users] no visitor implementation for : class org.drools.rule.TypeDeclaration

2010-10-29 Thread Tina Vießmann
Sorry, I didn't want to sound like I expected you to solve it. I was just curious if you had found something out, because the error remains the same. But it's nothing fatal to me. ;-) I'll see if I can make up a simple test project the next days. Tina Honestly, I didn't have time to take a

Re: [rules-users] no visitor implementation for : class org.drools.rule.TypeDeclaration

2010-10-29 Thread esteban.alive...@gmail.com
No problem :). The length of my TODO list is almost infinite. Best, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/10/29 Tina Vießmann tviessm...@stud.hs-bremen.de Sorry, I didn't want to sound

[rules-users] Declaring events separately from rules breaks expires

2010-10-29 Thread Samuli Saarinen
Hello, I have the following situation with Drools 5.1.1: 2 drl files where one contains an event declaration: declare Event1 @role(event) @expires(1s) end and other has a simple rule: rule Evt1 when e: Event1(value == 10) then

[rules-users] Marshalling Error : JBRULES-2453

2010-10-29 Thread drooRam
JBRULES-2453, This issue has been closed stating that it got fixed in 5.1.0 CR1. But I got the same issue in 5.1.1, following is the stacktrace of error: Hibernate: select hibernate_sequence.nextval from dual Hibernate: insert into SessionInfo (lastModificationDate, rulesByteArray, startDate,

[rules-users] Question about Drools Spring, StatelessKnowledgeSession and globals

2010-10-29 Thread Patrick van Kann
Hello, I've been trying out the Spring integration package in Drools 5.1.1 and it works really well, but I have run into one issue I can't figure out. I've defined 2 knowledge sessions from the same knowledge base in the app context - one stateless, one stateful but otherwise identical. They

Re: [rules-users] Declaring events separately from rules breaks expires

2010-10-29 Thread Edson Tirelli
Samuli, Are you adding your event declaration file before the rules that use them? As of today, you must always do that, but as long as you do, it should work even if they are in separate files. Regarding the update, it is not possible to do that today, but feel free to open a JIRA. I

Re: [rules-users] Declaring events separately from rules breaks expires

2010-10-29 Thread Wolfgang Laun
On 29 October 2010 16:08, Samuli Saarinen samuli.saari...@remion.comwrote: Hello, Further more if I declare the event in both of the files with different @expires the one being used is the one that is added first. I was hoping that the first declaration to be a default expires that could be

Re: [rules-users] Drools Bug: Custom Operator with Maps results in Mvel Error

2010-10-29 Thread Uday Kodukula
Edison, Thanks for your prompt reply! I'm trying to incorporate the workaround that you've suggested but I keep getting an error with the use of the from clause. I based this off of the documentation provided on drools.org for drools expert on how to use the from clause. So I declared a

Re: [rules-users] Drools Bug: Custom Operator with Maps results in Mvel Error

2010-10-29 Thread Edson Tirelli
Uday, You don't need a new type: Number( this daycompare[gt] 1 ) from profile.pageFreq[internet] I used the Number interface above, but you can use the Integer class directly if you want. Also, you can use the field names like intValue instead of using this if you want. Now, I have

Re: [rules-users] Drools Bug: Custom Operator with Maps results in Mvel Error

2010-10-29 Thread Uday Kodukula
Hi Edison, Thanks for the tip, I realize how I can use Integer type now. The following should hopefully be sufficient to reproduce the error that I am experiencing. Please me know if you need further clarity. I'm continuing to search through posts to and debug. I'll post back if I find the

Re: [rules-users] Drools Bug: Custom Operator with Maps results in Mvel Error

2010-10-29 Thread Edson Tirelli
Hi Uday, Thanks for the report bellow. I was able to isolate this to an MVEL regression that I submitted to Mike to fix: http://github.com/etirelli/mvel/commit/55347b578f23184935c6d224323ff031805f1afe This will be in MVEL 2.0.19, so as soon as Mike releases it you can update your mvel

Re: [rules-users] How to check for errors when creating a kBase using kAgent, kAgentConfiguration and kBaseConfiguration

2010-10-29 Thread Tina Vießmann
Thank you. :) And how do I catch the exceptions occurring while processing and executing the rules? Hi, If you are using 5.1 or greater, you can use a KnowledgeAgentEventListener to be notified when resource's compilation fails. You can create your own implementation of