[rules-users] Grouping rules

2008-01-31 Thread Jai Vasanth
Hi, I am building a system where I would need to fire different sets of rules based on some attribute in the fact object. Here are someways which I thought of, I was wondering if there was something better than that. 1) I could do this by creating different sessions based on the data attrbute

[rules-users] Java5 Enum - Reference on usage in constraints.

2008-01-31 Thread Krishna Satya
Greetings. I am trying to find the correct approach to defining and using Java5 Enum's in Drools constraints. *Psudo code:* Class RuleRequest { ... other attributes ... // RequestType is an enum type. RequestType type ; public RequestType getRequestType() { retu

Re: [rules-users] Invalid MagicNumber when validating package.

2008-01-31 Thread Mark Proctor
Normally that means there is something wrong with your .jar, are you sure there are .class files in there and not .java? We don't compile .jars we only add them to the classpath. Mark Darko Ivancan wrote: Product: JBoss DRools Version: 4.0.3 JDK: 1.5.0_12 OS: Windows XP SP2 AS: JBoss 4.2.2GA

Re: [rules-users] Stopping Rule-Execution after first match

2008-01-31 Thread Mark Proctor
Mark Proctor wrote: Mescher,Mark wrote: Hello, we have realized a project using drools with Decision Tables. We are working in sequential mode. Now we have the request for a mechanism to stop the rule execution after the first rule matches (so no more rules are executed). Is there a native wa

Re: [rules-users] Stopping Rule-Execution after first match

2008-01-31 Thread Mark Proctor
Mescher,Mark wrote: Hello, we have realized a project using drools with Decision Tables. We are working in sequential mode. Now we have the request for a mechanism to stop the rule execution after the first rule matches (so no more rules are executed). Is there a native way to do this with dec

Re: [rules-users] Writing rules against derived facts.

2008-01-31 Thread Mark Proctor
Drools does not currently support dynamic properties on objects, only concrete java classes. The fact template stuff is experimental and thus not documented and not gauranteed to work :) Partly this is because we are not sure how to effectively expose Fact Templates to the java dialect, I thin

[rules-users] Invalid MagicNumber when validating package.

2008-01-31 Thread Darko Ivancan
Product: JBoss DRools Version: 4.0.3 JDK: 1.5.0_12 OS: Windows XP SP2 AS: JBoss 4.2.2GA Hi, Sorry haven't been on the list for a while, busy with a project, which keeps me now really busy. We have here an exception which does not seem to make any sense and we're a bit lost in the why and where

[rules-users] Stopping Rule-Execution after first match

2008-01-31 Thread Mescher,Mark
Hello, we have realized a project using drools with Decision Tables. We are working in sequential mode. Now we have the request for a mechanism to stop the rule execution after the first rule matches (so no more rules are executed). Is there a native way to do this with decision tables? Thx Ma

[rules-users] Writing rules against derived facts.

2008-01-31 Thread Faron Dutton
Hi, I am having trouble understanding why the following does not work in 4.0.4. rule "A" when foo : Foo( bar == true ) then insertLogical( new DerivedFact( "relationName", foo, Boolean.TRUE ) ); end rule "B" when tuple : DerivedFact( name == "relationName" )