[rules-users] compare date in map in rule condition

2011-03-21 Thread James Gu
Hi, I am trying to compare date in condition of rule. I set the date format in system parameter. System.setProperty("drools.dateformat", "dd/MM/"); When I get the date from the fact object directly, it works well. when $record: Record( startDate < "01/01/3000" ) In

Re: [rules-users] KnowledgeAgent Issue

2011-03-21 Thread Steven Williams
I'm not sure whether they were added or not. I noticed the rules weren't running when I expected them to though, so perhaps not. I have worked around it by putting all my rules in the same package - luckily I only had about 30 different rule files, but it is a less than ideal solution. Once I have

Re: [rules-users] KnowledgeAgent Issue

2011-03-21 Thread Esteban Aliverti
Someone mentioned me the problem some time ago. I have a fix for it in my local repo, butI was waiting for the trunk to be stable to test it. The problem is that under certain circumstances, the kagent is reusing the same kbuilder to compile all the resources present in a change-set (the modificati

[rules-users] KnowledgeAgent Issue

2011-03-21 Thread Steven Williams
Hi all, I am trying to use a Knowledge Agent in 5.1.1 with a change set with a few different packages and resource types in it, and I am running into a problem where it is not adding all the packages. Looking at the code I can see that KnowledegeAgentImpl.createPackageFromResource has the followin

[rules-users] Sliding windows and event retraction

2011-03-21 Thread jwillans2
Hello, I am using sliding windows in the form: Obj(..) over window:length(1) from entry-point EP1 Where many events are being inserted into EP1. Reading the documentation I expected Drools to infer from the window length that all events on EP1 apart from the latest one can be retracted, is this

Re: [rules-users] Parsing problems using a DSL

2011-03-21 Thread drdaveg
Sorry to not include this earlier, but the exeption (where I am developing on another machine) disappeared before. It is exactly: DSL Rule Translation Error! Reason: java.lang.ArrayIndexOutOfBoundsException: 16 and my .dslr file has exactlly 16 lines. -- View this message in context: http://dr

Re: [rules-users] Parsing problems using a DSL

2011-03-21 Thread drdaveg
I have some more incite into what might be causing the problem. Once I remove the drools.package file - which shouldn't be needed since the imports and expander are in the .dslr file - and have a trivial example - I can see an "DSL Rule Translation: Array out of bounds" exception generated in Ecli

Re: [rules-users] Parsing problems using a DSL

2011-03-21 Thread Wolfgang Laun
On 21 March 2011 16:58, drdaveg wrote: > I have run into a number of problems using a domain specific language (DSL) > on processing DSLR files. My biggest frustration - and one I am hoping > people can provide a work-around or guidance on - is that often the Eclipse > plug-in does not allow the

Re: [rules-users] Limiting rule evaluation--not firing

2011-03-21 Thread Edson Tirelli
All, Please let me re-emphasize something from my e-mail: "for the general case [eager evaluation] is still better than doing selective evaluation". Unless you are having performance problems for your specific use case, you should not be worrying about this, as the engine is optimized for th

Re: [rules-users] Parsing problems using a DSL

2011-03-21 Thread drdaveg
Trying to bind a variable on the left hand side is a specific example that causes no error to be reported but no DRL to be generated. I can do the binding if I have one re-writing statement per possibility, i.e., There is a first object = object_1 : Car() but not if I generalize it: There is

[rules-users] Parsing problems using a DSL

2011-03-21 Thread drdaveg
I have run into a number of problems using a domain specific language (DSL) on processing DSLR files. My biggest frustration - and one I am hoping people can provide a work-around or guidance on - is that often the Eclipse plug-in does not allow the DRL pane, showing the DRL file, to be clicked on

Re: [rules-users] Limiting rule evaluation--not firing

2011-03-21 Thread FrankVhh
Hi all, This is a very interesting discussion, so I re-read the Drools Flow manual. IN section 8.1, it is stated as one of the reasons to use rules in your process: Performance: Rule evaluation is optimized. How do I have to understand this? Does rule evaluation only happens for the rules that a

Re: [rules-users] Limiting rule evaluation--not firing

2011-03-21 Thread Wolfgang Laun
Given that facts (after some common initial processing) fall into two or more classes that should be processed with significantly different (although not necessarily disjoint) sets of rules and also given that the fact and/or rule number is prohibitive for processing according to the simple design

Re: [rules-users] Limiting rule evaluation--not firing

2011-03-21 Thread Swindells, Thomas
That's probably the best way to go. I think it's a case of experimentation to work out what runs best (and please report your results). Things to consider are what order you have the conditions in the rules (the control fact first is probably most efficient but may be worth comparing with it at

Re: [rules-users] Limiting rule evaluation--not firing

2011-03-21 Thread Vincent Legendre
ok. So the only way to do that is to add a control fact, and update it at runtime... Do you think that using the "control fact" method will speed up the execution time for a large ruleset that have different ruleflow-group ? My feeling is yes, especially if "first" rules does many updates, but I

Re: [rules-users] Limiting rule evaluation--not firing

2011-03-21 Thread Swindells, Thomas
The thing to remember is that fact evaluation occurs at object insert/update time, not at the point you call fireAllRules. Salience, Agenda and rufeflow control on the other hand are runtime conditions which control which rules are actually activated in what order. Thomas From: rules-users-bou

Re: [rules-users] Limiting rule evaluation--not firing

2011-03-21 Thread Vincent Legendre
And what about ruleflow-group ? There is no network filtering for that too ? The ruleflow-group behaves like an agenda filter, but still evaluate all nodes ? Could we imagine setting "tags" to nodes, and stop propagation for node that does not declare the current task tag ? Le 21/03/2011 14:2

Re: [rules-users] Drools 5.1.1 : Error reporting issue in PackageBuilder

2011-03-21 Thread Arjun Dhar
ok?! Should i file a JIRA? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-1-1-Error-reporting-issue-in-PackageBuilder-tp2705166p2709887.html Sent from the Drools - User mailing list archive at Nabble.com. _

Re: [rules-users] Limiting rule evaluation--not firing

2011-03-21 Thread Edson Tirelli
The algorithm as is does eager evaluation, as for the general case that is still better than doing selective evaluation. If, in your case, the decision of which rules to fire is an arbitrary application decision, and not based on the actual constraints of the rules themselves, then the only

Re: [rules-users] Limiting rule evaluation--not firing

2011-03-21 Thread FrankVhh
Hi, Having the same questions you had, I played a bit with agenda-groups to see if there was any notable performance effect. I added 200 extra rules which did not fire at all and did two "series" of rule executions. Once with all rules within the same agenda-group and once with the 200 extra rule

Re: [rules-users] Migrate from JBRMS 4.0.7 to Guvnor 5.1

2011-03-21 Thread smolnij
Guys, please any thoughts? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Migrate-from-JBRMS-4-0-7-to-Guvnor-5-1-tp2692846p2709675.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users

Re: [rules-users] Drools Introduction Documentation --

2011-03-21 Thread Mauricio Salatino
Hi, you are probably missing the drools runtime configuration. Check in your setting tab and look for the Drools settings to see if you have it configured. Greetings. 2011/3/20 Imaad Ghouri > Hi, > > Thanks all for the response. > > I have started with examples and having an issue while I copied

Re: [rules-users] Drools java program on Apple Ipad?

2011-03-21 Thread Mauricio Salatino
Drools/jBPM5 can run on android. Kris make a post about it :) http://kverlaen.blogspot.com/2011/03/jbpm5-lightweight-running-on-android.html 2011/3/21 Vincent Legendre > Just wondering. > But what about Android ? > Does anyone already make drools work on it ? > > Le 19/03/2011 04:54, Lucas Amad

Re: [rules-users] Drools java program on Apple Ipad?

2011-03-21 Thread Vincent Legendre
Just wondering. But what about Android ? Does anyone already make drools work on it ? Le 19/03/2011 04:54, Lucas Amador a écrit : To have a minimal Java support you have to jailbreak your iPhone/iPad and install jamVM using the console. The last time I tried the compiler wasn't able to compile

Re: [rules-users] Drools java program on Apple Ipad?

2011-03-21 Thread Swindells, Thomas
I don't know what your application does or what your requirements are but could you get away with writing a website/service containing all the logic and then allowing the iPad to access that - means that your iPad would always need a connection to use it but would also mean that you get support