[rules-users] org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[

2011-07-29 Thread bhavindalal
Hello, I am new to Drools. On starting to execute a simple program, eclipse gives the following stacktrace as error. I even included the org.eclipse.jdt that comes with eclipse, but it is still giving me error. Anybody please suggest the problem. I am using Drools 5.0 and its dependencies and Eclip

Re: [rules-users] Stateful vs. Stateless Session Performance

2011-07-29 Thread Ryan R.
Please ignore the previously posted benchmark data. The benchmark code had a bug. -- View this message in context: http://drools.46999.n3.nabble.com/Stateful-vs-Stateless-Session-Performance-tp3208057p3211133.html Sent from the Drools: User forum mailing list archive at Nabble.com. __

Re: [rules-users] Stateful vs. Stateless Session Performance

2011-07-29 Thread Ryan R.
Thanks Wolfgang- I did not realize the stateless session was just a wrapper around the stateful session. I think the stateful with manual cleanup after each fireAllRules invocation is the way to go here. As a follow up question, do you think Drools and Rules Engines in general are the way to go f

[rules-users] Query in stateless knowledge session returns no results

2011-07-29 Thread Heijink, Hank
Hi all, I'm new to Drools, so please excuse me if I'm asking about the obvious--it's certainly not obvious to me. The problem is this: I use a stateless knowledge session where a list of facts is inserted. The rules that fire create new facts, and after all the rules have fired, I'd like to obt

Re: [rules-users] Not able to get the knowledgeBase from web application

2011-07-29 Thread jilani
I am stuck in getting knowledgebase from web application context, I am able to get the knowledgebase and execute rules from that base if it is desktop application. Guide me in this regard, how to get the knowledgebase from web application using knowledgeAgent approach. -- View this message in con

Re: [rules-users] Condition syntax to access Map

2011-07-29 Thread Greg Barton
Ah, other engines don't do nested accessors because they're wimps.  WIMPS! :) --- On Fri, 7/29/11, Mark Proctor wrote: From: Mark Proctor Subject: Re: [rules-users] Condition syntax to access Map To: rules-users@lists.jboss.org Date: Friday, July 29, 2011, 8:52 AM On 29/07/

Re: [rules-users] How to add application data via StatefulKnowledgeSession

2011-07-29 Thread Wolfgang Laun
If the "global" is both modified by rules and investigated by rules: then it's not a global but a singleton fact. You can use a global in a condition, but only if the data obtained from the global is constant over time. I think that your "container" ought to be a fact. -W 2011/7/29 Matthew Erl

Re: [rules-users] How to add application data via StatefulKnowledgeSession

2011-07-29 Thread Matthew Erler
I'm using Drool 5.  I reviewed globals and it looks like it might be appropriate for my situation.  I find plenty of documentation on how to use a global in a consequence, but none on how to use a global in a condition.  Do you know if it's possible to use a global in a condition?  My situation

[rules-users] error resolving class name on imported class when loading package

2011-07-29 Thread lhorton
I am getting an error when the knowledge agent loads a pkg. The rules source file contains an import for a class: com.abclegal.domain.task.FileDocumentsWithCourtTask and the RHS of a rule makes a cast using the class name without fully qualifying it: ((FileDocumentsWithCourtTask)$step.ge

Re: [rules-users] Flow isn't behaving as I'd expect

2011-07-29 Thread Jamie
I've found the answer to my problem - it's behaving as designed, but the design is less than intuitive. Apparently others agree. Here's a thread involving Michal Bali and Mark Proctor which discusses the issue: executing-ruleflow-with-AgendaFilter-td60084.html executing-ruleflow-with-AgendaFilte

Re: [rules-users] Using Rule Templates

2011-07-29 Thread Wolfgang Laun
Are you aware of the "Expert" manual's Chapter "Authoring", where Section x.2, "Templates" discusses these and, in Subsection x.2.2, "Expanding a Template" shows how to use Collections of Pojos and Maps as parameter provides for template expansions? -W 2011/7/29 David Godfrey > Can someone point

Re: [rules-users] Condition syntax to access Map

2011-07-29 Thread Mark Proctor
On 29/07/2011 14:28, Edson Tirelli wrote: Yes, that is exactly what I think. Pattern matching constraints are like query parameters. They need to exist and evaluate to true in order to match. So, for this to match: a.b.c == null a needs to exist and be non-null, b needs to exist and b

Re: [rules-users] Condition syntax to access Map

2011-07-29 Thread Edson Tirelli
Yes, that is exactly what I think. Pattern matching constraints are like query parameters. They need to exist and evaluate to true in order to match. So, for this to match: a.b.c == null a needs to exist and be non-null, b needs to exist and be non-null, c needs to exist and be null. So it

Re: [rules-users] Condition syntax to access Map

2011-07-29 Thread Mark Proctor
Lets forget that these are nested accessors and the problems they bring. Lets look at what they would be if they were real relations: On 29/07/2011 08:55, Wolfgang Laun wrote: Whoa! See below... 2011/7/28 Edson Tirelli > I think we need to differentiate p

[rules-users] Using Rule Templates

2011-07-29 Thread David Godfrey
Can someone point me in the direction of documentation or examples for using Rule Templates together with data held in a database (or source other than XLS / CSV which seems to be what all the examples show)? Many thanks, David ___ rules-users mailing l

Re: [rules-users] Stateful vs. Stateless Session Performance

2011-07-29 Thread Wolfgang Laun
The comparison might not be done with the required fairness. Consider that the stateless session's execute method implies a dispose() call, which you appear to be skipping in the stateful test code. If your rules do not insert secondary facts and if you are able to clean up properly after processi

Re: [rules-users] How to add application data via StatefulKnowledgeSession

2011-07-29 Thread Wolfgang Laun
2011/7/28 Matthew Erler > Can someone please show me an example where application data is added to > workingMemory as described here: > http://docs.codehaus.org/display/DROOLS/Application+Data using > StatefulKnowledgeSession? > This is very old reference, based on a Drools version that's rather

Re: [rules-users] Condition syntax to access Map

2011-07-29 Thread Wolfgang Laun
Whoa! See below... 2011/7/28 Edson Tirelli > >I think we need to differentiate paradigms here. When using rules, > contrary to imperative code, what we are doing is pattern matching. > > X( a.b.c == ) > >In the above case, we are looking for Xs that make that whole constraint > true (i.

Re: [rules-users] How to add application data via StatefulKnowledgeSession

2011-07-29 Thread Esteban Aliverti
Which version of drools are you using? The document you pointed out seems a little bit old. Since Drools 5, you can use globals to use application's data in your DRLs. If you are using Drools 5 or higher, I suggest you to read the documentation about globals. Best Regards, XXX

Re: [rules-users] Possibly stupid question... but I have to ask

2011-07-29 Thread Wolfgang Laun
On 28 July 2011 23:36, menada wrote: > Because the fact is not already in the kbase (so i can't modify it and then > insert it). > (1) X x = new X(...); x.setA(...);...x.setZ(...); insert( x ); (2) X x = new X(...); insert( x ); modify( x ){ setA(...),..., setZ(...) } These two sequences are l