Re: [rules-users] How to know the number of rules fired?

2007-07-13 Thread Mark Proctor
with JSR94 only you are screwed, its a useless spec, don't use it. With normal Drools, just use an AgendaEventListener. Mark Diouf Mouhamed wrote: Hi all, I have a little problem: I'm using the JSR94 and I want to know, at the end of an execution, the number of the rules fired? My second quest

RE: [rules-users] how to create local variable

2007-07-13 Thread Anstis, Michael \(M.\)
Or what about having a rule that creates the substring? Class SupplierCode { private String code; private SupplierView parent; public SubString(SupplierView parent, String code) { this.code = code;

Re: [rules-users] negation for matches

2007-07-13 Thread Edson Tirelli
If you are using MR3 or later, the correct syntax is "not matches". Before this version, you must use a predicate. []s Edson 2007/7/13, Manukyan, Sergey <[EMAIL PROTECTED]>: Nope .. it doesn't work either…. -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROT

RE: [rules-users] negation for matches

2007-07-13 Thread Manukyan, Sergey
Nope .. it doesn't work either From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sarika Khamitkar Sent: Friday, July 13, 2007 5:06 PM To: Rules Users List Subject: RE: [rules-users] negation for matches You can try: $s : SupplierView(suppC

RE: [rules-users] negation for matches

2007-07-13 Thread Sarika Khamitkar
You can try: $s : SupplierView(suppCode not matches "\\d\\d.*") From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manukyan, Sergey Sent: Friday, July 13, 2007 4:49 PM To: Rules Users List Subject: [rules-users] negation for matches Folks,

[rules-users] negation for matches

2007-07-13 Thread Manukyan, Sergey
Folks, How can I negate the matches?, like for those that don't match certain criteria do that I tried something like this but it doesn't work: rule "SupplierView: Supplier code's first two characters should be numeric." when $s : SupplierView(!(suppCode matches

Re: [rules-users] Problem with Drools IDE (Eclipse)

2007-07-13 Thread Fernando Meyer
Good Afternoon, Unfortunately, Drools eclipse plugin isn't compatible with Eclipse Europa ( 3.3 ), try using 3.2 instead. Regards. Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 13, 2007, at 10:28 AM, Eric Miles wrote: I attempted to send this last night, but

[rules-users] How to know the number of rules fired?

2007-07-13 Thread Diouf Mouhamed
Hi all, I have a little problem: I'm using the JSR94 and I want to know, at the end of an execution, the number of the rules fired? My second question is using only JBoss rules how can I know this number (without using JSR94). Thanks, Mouhamed Diouf begin:vcard fn:Mouhamed Diouf n:Diouf;Mouhame

Re: [rules-users] Rule compilation errors under heavy load

2007-07-13 Thread Dean Jones
Hi Mark, On 7/13/07, Mark Proctor <[EMAIL PROTECTED]> wrote: I think I've alread fixed this in trunk - when dealing with add/removing stuff I now do a block syncronisation on the pkgs instance. If that test is clean, we should add it to the list of integration tests, to track regressions. I

Re: [rules-users] Re: Using JDK dynamic proxies as facts

2007-07-13 Thread Oleg Yavorsky
Chris, I'm thinking about using dynamic proxies in my rules too. I'll be glad to hear about your success with them. I think that there could be problem with matching of facts as they won't be of original class but of Proxy$... one. CGLIB approach doesn't have such problem as it just modifies or

Re: [rules-users] Re: Using JDK dynamic proxies as facts

2007-07-13 Thread Mark Proctor
That is not the only thing that determines shadowing. If you look the shadowing is actually determined here: if ( !ruleBase.getConfiguration().isShadowProxy() || cls == null || !ruleBase.getConfiguration().isShadowed( cls.getName() ) ) { return; } By default

[rules-users] Problem with Drools IDE (Eclipse)

2007-07-13 Thread Eric Miles
I attempted to send this last night, but didn't see it show up to the user list so I'm going to try again, I apologize if this was sent more than once. When I attempt to open several views (Working Memory, Agenda, Global, etc) within an JBoss Rules enabled Eclipse, I receive the following error:

Re: [rules-users] Rule compilation errors under heavy load

2007-07-13 Thread Mark Proctor
I think I've alread fixed this in trunk - when dealing with add/removing stuff I now do a block syncronisation on the pkgs instance. If that test is clean, we should add it to the list of integration tests, to track regressions. Mark Edson Tirelli wrote: Dean Thanks, we will investiga

Re: [rules-users] Complex validation logic for hierarchies with Drools

2007-07-13 Thread Edson Tirelli
Please do! We will all thank you. Regarding checking all the conditions in the LHS, that's what the engine does best, so always avoid "if"s in the RHS... in the LHS they get indexed, shared, hashed, etc, whenever possible, improving the performance of the whole system. []s Edson 2007/7/

[rules-users] Re: [rules-dev] Can't execute rules twice with a second classloader

2007-07-13 Thread Mark Proctor
can you make an integration test for us? As we'll need to be easily able to reproduce this. We'll add it to our code base and fix. We'll probably add it as aprt of the MiscTest class: http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/Mi

Re: [rules-users] Complex validation logic for hierarchies with Drools

2007-07-13 Thread Oleg Yavorsky
Edson, Thank you very match. I've found a lot of ideas from your response. I didn't think about moving all conditions to LHS first and planned to use LHS only as a filter to find object to validate in RHS. I'll try to implement prototype and share experience in a list if you don't mind. Oleg.

[rules-users] Adding attributes to RUles in decision tree

2007-07-13 Thread Saurabh Shukla
Hi Everyone, Can any one please suggest in which cell the XOR-GROUP can be entered while creating a rules using decision table (excel sheet) ? I have been looking at the documentation and it states that XOR-GROUP is is keyword and can be added. However it doesn't really tells in what cell (