Re: [rules-users] Plz reply : Descending order rule

2008-02-21 Thread Christian Spurk
Hi Barath! Barath wrote: This indicates the rule should fire for three times but its not the case. Looking at your last e-mail only: as far as I can see, the rule indeed fires exactly three times ... It prints the following: value :3 value :2 value :1 Probably I don't quite understand the

Re: [rules-users] Wild card characters in .drl file

2008-02-06 Thread Christian Spurk
Hi! hanumesh.m wrote: m: Message( fileName matches "*888*", message : message ) [...] But its not working. Error is "Dangling meta character '*' near index 0 *888*" You have to use valid Java Regular Expressions (cf. http://java.sun.com/javase/6/docs/api/java/util/regex/Patte

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 chec

Re: [rules-users] RE: rules-users Digest, Vol 10, Issue 56

2007-09-28 Thread Christian Spurk
Hi Basha! Sikkandar Nawabjan wrote: How to check my property contains only numeric. for ex when address(telphoneno=="??") telephone no should be numeric then s.o.p("error"); If your "telephoneno" variable is a String, you can use the "matches" operator (cf. Drools manual se

Re: [rules-users] RE: rules-users Digest, Vol 10, Issue 56

2007-09-28 Thread Christian Spurk
Hi again! Christian Spurk wrote: If your "telephoneno" variable is a String, you can use the "matches" operator (cf. Drools manual section 6.5.2.1.1.3.1., "Matches Operator"): address(telephoneno matches "^\\d+$") Sorry, I should have read the m

Re: [rules-users] Does Drools 4.0 rules have downward compatibility with lower versions.?

2007-08-01 Thread Christian Spurk
Hi Kingston! kingston wrote: Where can i get more information on the backward compatibility issues ? Sorry, my last answer to your question maybe was not really complete. A better overview give the following pages: http://blog.athico.com/2007/07/drools-apilanguage-changes-break.html http://

Re: [rules-users] Does Drools 4.0 rules have downward compatibility with lower versions.?

2007-08-01 Thread Christian Spurk
No. See: http://blog.athico.com/2007/07/jboss-drools-40-released.html kingston wrote: begin:vcard fn:Christian Spurk n:Spurk;Christian org:DFKI GmbH;Language Technology Lab adr;quoted-printable:;;Stuhlsatzenhausweg 3;Saarbr=C3=BCcken;;66123;Germany email;internet:[EMAIL PROTECTED] title:Dipl.

Re: [rules-users] NullPointerException in a simple test -- a Drools bug?

2007-07-27 Thread Christian Spurk
Hello Edson, thanks for your quick reply. Edson Tirelli wrote: Yes, looks like a bug. Can you please open a JIRA for it? Ok, I've filed a bug in JIRA here: http://jira.jboss.com/jira/browse/JBRULES-1034 I've set the priority to "Blocker" as this bug currently blocks our migration to Droo

[rules-users] NullPointerException in a simple test -- a Drools bug?

2007-07-27 Thread Christian Spurk
Hi all, I'm trying to migrate my JBoss v3.0.6 rules to the latest v4.0.0 release. I could already resolve some issues but now I'm already stuck for hours with a NullPointerException that I can't get rid of. I broke the problem down to a relatively small set of test files that I'd like to show