RE: [rules-users] generalize a rule in security.drl file

2007-11-08 Thread Anstis, Michael (M.)
The use of regular expressions in your pattern match would help. rule GeneralisedRestrictAccessClient when check : PermissionCheck( name matches /*Edit.xhtml, action == render ) then check.grant(); end You'd best check the RegEx syntax though! Cheers, Mike _ From:

Re: [rules-users] inconsistency with 'collect' and the '||' operator

2007-11-08 Thread Edson Tirelli
This looks like a bug. Can you please open a JIRA and attach a self contained test you are using to reproduce the problem? This helps us to speed up getting the solution. Thanks, Edson 2007/11/7, Adrian Cowham [EMAIL PROTECTED]: I'm running into an issue where the || operator

Re: [rules-users] multiprocessor and performance

2007-11-08 Thread Edson Tirelli
Mario, Each working memory executes single threaded and as such will use only one processor. As long as you have each of your requests creating a working memory (ideally from a shared pre-loaded/pre-compiled rulebase) and executing in a separate thread, it should be using all your

[rules-users] multiprocessor and performance

2007-11-08 Thread Mario
Hi all, I've got a fairly simple web application with DRools 4.0.3 deployed on a Tomcat 5.5, where I'm running a stress test of about 100 users doing fact changes every half a second. There are about 20 rules and about 20 facts. Each action loads and compiles the rule base, creates a new working

Re: [rules-users] RE: rules-users Digest, Vol 12, Issue 16

2007-11-08 Thread Dr. Gernot Starke
Sikkandar, regard a rule-semaphore as a guard: It's a variable which you use on left hand side of rules: rule 1 when Guard g other conditions then RHS end You can set the semaphore in any other rule to control which other rules you want to disable or enable... (If you need background on

[rules-users] generalize a rule in security.drl file

2007-11-08 Thread Mohamed Mhissen
I use restrictions to control access to my pages. In my security.drl file, I have : *Code:* rule RestrictAccessClientEdit when check: PermissionCheck(name == /ClientEdit.xhtml, action == render) Role(name == admin) then

Re: [rules-users] generalize a rule in security.drl file

2007-11-08 Thread Christian Spurk
Hi Mohamed! Mohamed Mhissen wrote: I use restrictions to control access to my pages. [...] rule RestrictAccessClientEdit when check: PermissionCheck(name == /ClientEdit.xhtml, action == render) Role(name == admin) then

Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-08 Thread Robert Morse
Hello Edson, Frankly, I wouldn't spend a lot of time on this. The alternate approach is to inject the working memory into the Seam component as described in the docs. Assuming that works (which I'm sure it will), then there's no reason to use the approach I was attempting. Let me

Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-08 Thread Robert Morse
Hello, I downloaded Seam 2.0.0.GA, built the drools example (it's a simple number guess application). It fails exactly the same way. I'm guessing the Seam guys tested this before releasing, so I'm assuming (as Edson pointed out) a JVM issue with Mac OS X Leopard? On Nov 8, 2007, at 6:57

[rules-users] Can a rule be assigned both agenda-group and ruleflow-group ?

2007-11-08 Thread LNguyen
Hi everybody: I would like to use Drools to capture validation logics that will be shared at UI level and back-end level. That is, I need to fire a specific rule on-demand to validate a field input and fire it again as part of the final validation. To fire a specific rule, I use the

[rules-users] compound LHS error, getting Parser error. Contact Dev Team

2007-11-08 Thread Eric Miles
I have a compound LHS statement that is causing the parser to fail. Here is my exact stacktrace: org.drools.compiler.DroolsParserException: Unknown error while parsing. This is a bug. Please contact the Development team. at org.drools.compiler.DrlParser.compile(DrlParser.java:183)

[rules-users] Drools and BRMS (60,000+ rules)

2007-11-08 Thread Carlsen, Len
Hello, I am wondering if anyone has any experience in managing very large rule sets and facts and could share their experiences in the design and management of this. We are embarking on a new Student Information System project here at UBC in conjunction with several other American

Re: [rules-users] RuntimeDroolsException: Unable to load -- Solved

2007-11-08 Thread Robert Morse
Solved. Actually, Mark Proctor solved this several days ago when he asked if Seam came with its own Drools jars. It does. If you use the non-Seam bundled drools jars, you will get this exception. Sorry for wasting anyone's time on this, but I'm curiousany ideas what is different

[rules-users] Rules for Hierarchical Type Calculation Formulas

2007-11-08 Thread Don Cameron
We have been using a custom rules engine successfully for our 1000+ rules for our student loans application, but these rules are decision based types rules (if then else). For assessing loan amounts for our student loan application, we have over 400+ calculation formulas plus decision