[rules-users] Drools 5 - how create Logger for Template File based rules?

2009-06-30 Thread ch...@twc
I'm trying to figure out how I can create a Logger to log rule activations for my Template File code. I followed the examples to successfully create a Logger for DRL and Decision Table examples. Apparently, to create a Logger, the KnowledgeRuntimeLoggerFactory methods take a KnowledgeRuntimeEventM

Re: RE : RE : [rules-users] Re: [drools-solver] help for defining my droolsmodel/ moves

2009-06-30 Thread Geoffrey De Smet
Probably a typo (no ; after AppointmentSlot() ?), take a look at the examination example's roomCapacity rule to compare. With kind regards, Geoffrey De Smet Laurent Michenaud schreef: Hi, The jira web site doesnot work the moment. I will have a look later. I have tried your wordround but it

Re: [rules-users] stream mode and DroolsStreamUtils

2009-06-30 Thread Jaroslaw Kijanowski
https://jira.jboss.org/jira/browse/JBRULES-2150 Thanks. Edson Tirelli wrote: Jaroslaw, This looks like a bug. Would you please open a JIRA and attach the info bellow as well as drools and mvel version used? Thanks, Edson 2009/6/30 Jaroslaw Kijanowski

Re: [rules-users] stream mode and DroolsStreamUtils

2009-06-30 Thread Edson Tirelli
Jaroslaw, This looks like a bug. Would you please open a JIRA and attach the info bellow as well as drools and mvel version used? Thanks, Edson 2009/6/30 Jaroslaw Kijanowski > Hi, > I'm using sliding windows (hence stream mode). > Here's my rule: > > declare Sensor >@ro

[rules-users] stream mode and DroolsStreamUtils

2009-06-30 Thread Jaroslaw Kijanowski
Hi, I'm using sliding windows (hence stream mode). Here's my rule: declare Sensor @role (event) end rule 'r' when Number( dv:doubleValue > 1 ) from accumulate( Sensor( $v : value ) over window:length( 2 ), average( $v ) ) then System.out.println(dv); end Here's

Re: [rules-users] How to retrieve the Rule names in the drools rule file

2009-06-30 Thread Amila Silva
Hi Laun, Yes now it works fine thanks. earlier case it was like rule "Test Exists" enabled false @Purpose (" WORD ") when after removing "enabled false" tag it works fine. Amila Silva --- @ WiseStamp Signature . Get it now

Re: [rules-users] RuleBase.newStatefulSession() and EventProcessingOption

2009-06-30 Thread Edson Tirelli
Yes, that is recommended, although you can still use the old API, even for new features. One comment though: temporal operators work both in STREAM and CLOUD mode. The features that require STREAM mode are sliding windows and automatic event garbage collection. []s Edson 2009/6/30 Ju

Re: [rules-users] How to retrieve the Rule names in the drools rule file

2009-06-30 Thread Amila Silva
hi Laun, I tries with your solutions but i couldn't find the way to configure the meta - data part in rule file to read. I came across with following issues when trying to read it from a given code. [12,2]: [ERR 102] Line 12:2 mismatched input 'AT' expecting 'then' in rule "create new Inst

Re: [rules-users] How to retrieve the Rule names in the drools rule file

2009-06-30 Thread Wolfgang Laun
You might use the API to retrieve all rules in your KnowledgeBase KnowledgeBase kBase = ...; for( KnowledgePackage kp: kBase.getKnowledgePackages() ){ for( Rule r: kp.getRules() ){ String name = r.getName(); String purpose = r.getMetaAttribute( "Purpose" ); // or si

[rules-users] RuleBase.newStatefulSession() and EventProcessingOption

2009-06-30 Thread Julien Nicoulaud
Hi, I am trying to upgrade a system from Drools 4.0.7 to Drools 5.0.1 to use Drools Fusion temporal operators. With used to start our rule engine this way: RuleBase ruleBase = RuleBaseFactory.newRuleBase(new RuleBaseConfiguration(ourClassloader)); WorkingMemory workingMemor

REĀ : RE : [rules-users] Re: [drools-solver] help for defining my droolsmodel/ moves

2009-06-30 Thread Laurent Michenaud
Hi, The jira web site doesnot work the moment. I will have a look later. I have tried your wordround but it raises the exception : java.lang.IllegalStateException: There are errors in the scoreDrl's:[63,0]: [ERR 101] Line 63:0 no viable alternative at input ''[63,1]: [ERR 101] Line 63:1 no via

Re: [rules-users] How to retrieve the Rule names in the drools rule file

2009-06-30 Thread Kapila Silwathge
Hi Amila, One way to do this is to convert your rule file to xml and then manipulate the xml to get whatever the data you need. Conversion between DRL and XML can be done automatically using following helpers/utilities that come with Drools itself XmlDumper - for exporting XML DrlDumper - for e