[rules-users] could not access property ('=')

2007-08-13 Thread Arsalan S. Zaidi
Hi. I've currently evaluating Drools 4.0 for a project of ours and I'm running into some problems. I have a rule which looks like this: rule W250.42 Editable when DTO(w250_4_1.value in (0,1,6,7,A,C,D,G,L,M,P,Q,S,V,Z) ) then System.out.println

[rules-users] Problem with != field constraint

2007-08-13 Thread Markus Reitz
Hi, I have a problem with a rule which uses a != field constraint. The following code illustrates the problem. import org.drools.*; import org.drools.compiler.*; import org.drools.rule.Package; import java.io.*; public class DroolsTest { private RuleBaserules; private

[rules-users] OR operator

2007-08-13 Thread Jaikiran Pai
Hi, This is a very newbie question. I have a Person object which contains a collection named interests. This collection will contain the activities that the Person is interested in. If the person is interested in Golf, Soccer and Baseball, then this collection will contain these 3 strings. I

[rules-users] NoClassDefFoundError for

2007-08-13 Thread Barfield Steve
Jesse/Fernando/anybody Do you know if this problem has been resolved - I am getting the same problem from a web service running on BEA weblogic Regards, Steve Barfield, Developer Application Services FUJITSU SERVICES Cavendish Road, Stevenage, Herts, SG1 2DY * +44 (0) 870 234 8197

Re: [rules-users] expander mappings empty !

2007-08-13 Thread hypnosat7
But why the expand methode in DrlParser.parse(final String source, final Reader dsl) can't build the expander with an inputStreamReader on a used ressource ? And If I use two FileReader on the same dsl file it work's example : dslReader = new

Re: [rules-users] getGlobal

2007-08-13 Thread Mark Proctor
globals are automatically in injected you don't need the getGlobal at all from within a consequence. However if you are in java land you you may need to read a global value and we can't inject it there, so thats the reason for this. Mark hypnosat7 wrote: Hi, Is it important to use

Re: [rules-users] OR operator

2007-08-13 Thread Mark Proctor
using 'or' like that results in subrule generation, i.e. rules will fire for all matching combinatinos - this is not what people normally want. you can also do it using field constraints person : (Person (interests contains Golf || contains Soccer) Jaikiran Pai wrote: Hi, This is a very

Re: [rules-users] variables in rules

2007-08-13 Thread Mark Proctor
yes you can use a variable, and no you cannot dynamically generate rules in an eval. Mark Arsalan S. Zaidi wrote: Hi. Two questions: 1. Is it possible to use a variable in a IN(...) ? E.g. when $someVar : SomeObj() (pqr in (abc, $someVar)) then ...

Re: [rules-users] NoClassDefFoundError for

2007-08-13 Thread Michael Neale
Hi Steven - can you provide the background on this? (I didn't see any other info - perhaps gmail has gone nuts or my brain has, I have been on holidays). Michael. On 8/13/07, Barfield Steve [EMAIL PROTECTED] wrote: Jesse/Fernando/anybody Do you know if this problem has been resolved – I

RE: [rules-users] variables in rules

2007-08-13 Thread Arsalan S. Zaidi
Hi Mark. Thanks for the quick reply! :-) About question no. 2, is there anyway to do something like that with Drools? Regards, --Arsalan From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor Sent: 13 August 2007 18:03 To:

Re: [rules-users] expander mappings empty !

2007-08-13 Thread Kris Verlaenen
This is not Drools-related but rather a generic Java problem. You should read the Java API of the Reader class. A reader remembers the last position it used to read out data. So if you try to use the same reader twice, the second time it will be empty, as it will already be at the end of the

Re: [rules-users] expander mappings empty !

2007-08-13 Thread hypnosat7
I need the mapping for a wizard. In fact if I execute the methode below before the addPackageFromDrl(drlReader, dslReader) I have problems. private DSLMapping generateDslMapping(Reader dslReader) { DSLMappingFile dslMappingFile = new DSLMappingFile();

Re: [rules-users] variables in rules

2007-08-13 Thread Mark Proctor
yes, you can do it in a consequence or from java land. Mark Arsalan S. Zaidi wrote: Hi Mark. Thanks for the quick reply! :-) About question no. 2, is there anyway to do something like that with Drools? Regards, --Arsalan

Re: [rules-users] OR operator

2007-08-13 Thread Jaikiran Pai
Thanks for the inputs, Mark. I just modified the Helloworld example to try this out. I added a collection to the Message class: public static class Message { public static final int HELLO = 0; public static final int GOODBYE = 1; private String

[rules-users] Independent rule evaluations

2007-08-13 Thread Yuri
Considering that I have a set of rules that can be time consuming to assert is there a way to separate them from other rules without having to resort to multiple working memories? I basically want to be able to assert facts and evalute a set of rules as fast as I can before actually having the

Re: [rules-users] Problem with != field constraint

2007-08-13 Thread Edson Tirelli
Markus, Can you plz open a JIRA for this? Thank you, Edson 2007/8/13, Markus Reitz [EMAIL PROTECTED]: Hi, I have a problem with a rule which uses a != field constraint. The following code illustrates the problem. import org.drools.*; import org.drools.compiler.*; import

Re: [rules-users] OR operator

2007-08-13 Thread Edson Tirelli
Jaikiran, This is only supported in Drools 4. In 3.0.x, you will have to use either a predicate or do what you were doing, but note that as Mark mentioned, the OR CE will cause subrule generation, meaning the rule will fire twice if both conditions are true. []s Edson 2007/8/13,

Re: [rules-users] could not access property ('=')

2007-08-13 Thread Edson Tirelli
This looks like an MVEL issue, since your expression is being converted into an MVEL predicate. May I ask you please to open a JIRA for that bug? Meanwhile, a workaround that shall work for you and may give you improved perf is to split your pattern into 2 patterns using the from keyword:

Re: [rules-users] Independent rule evaluations

2007-08-13 Thread Brian Sam-Bodden
You can use Agenda Filters or Agenda Groups I believe. On 8/13/07, Yuri [EMAIL PROTECTED] wrote: Considering that I have a set of rules that can be time consuming to assert is there a way to separate them from other rules without having to resort to multiple working memories? I basically

[rules-users] Re: Independent rule evaluations

2007-08-13 Thread Yuri
Brian Sam-Bodden bsbodden at integrallis.com writes: You can use Agenda Filters or Agenda Groups I believe. Hi Brian, afaik, agenda-groups just layers the rule activations so that it becomes easier to manage their activations instead of resorting to managing saliences on individual rules, but

Re: [rules-users] Problem with != field constraint

2007-08-13 Thread Markus Reitz
Hi, Can you plz open a JIRA for this? http://jira.jboss.com/jira/browse/JBRULES-1079 Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] Re: Independent rule evaluations

2007-08-13 Thread Brian Sam-Bodden
How about RuleFlows? If there is a work flow flavor to these groups of Rules then I think a Rule Flow could help. I don't know how the underlying implementation works but I think that you will not have the when parts of those Rules not active in the Flow be evaluated. On 8/13/07, Yuri [EMAIL

[rules-users] Problems with BRMS

2007-08-13 Thread Felipe Piccolini
Im having problems using the BRMS 4.0GA and BRMS 4.0 stand alone (v 1.0). Things just crash without reason... importing models crash sometimes, and trying to create LHS in business rules got stall... not showing any option to add fact or whatever... In standalone version I have this error

[rules-users] NoClassDefFoundError for

2007-08-13 Thread Barfield Steve
Michael, Thanks for your reply. I havn't got the hang of adding to an existing thread in this forum, I keep starting a new one. The original post was by Jesse Stockall jstockall at embotics.com on Tue Jul 17 08:55:23 EDT 2007 My problem seems to be the same as Jesse's, Fernando thought it

Re: [rules-users] expander mappings empty !

2007-08-13 Thread Michael Neale
I think because the stream has reached the end once you load it the first time. Get a fresh reader from a fresh stream and it should work. On 8/13/07, hypnosat7 [EMAIL PROTECTED] wrote: But why the expand methode in DrlParser.parse(final String source, final Reader dsl) can't build the

[rules-users] From clause and connection time outs - suggestion

2007-08-13 Thread Arjun Dhar
Hi, in a load intensive operation, if a pool of JDBC connections is exausted the 'from' breaks. Ok, it should! (Not expecting magic :o) ) ,.. but I'm concerned about the trace it generates. The stack trace does not suggest the ground reality and is very abstract. Can you have an enhacement to

[rules-users] Test for null object, not null property

2007-08-13 Thread Stuart Moffatt
The incoming building was initialized like this: Building building = null; FactHandle buildingFact = businessRuleSession.insert( building ); businessRuleSession.setFocus(validate delete or get building); businessRuleSession.fireAllRules(); Can drools test for this null building? What should the