Re: [rules-users] Accessing maps (hashmaps) keys and values in rules

2008-03-12 Thread Mehak
Hi I am using xml drl files for my rules. I pass the facts in HashMap. Map factAgendaMap = new HashMap(); factAgendaMap.put("group", ruleConfig.getRuleName()); factAgendaMap.put("fact", fact); session.execute(factAgendaMap); In my drl file I m calling the

RE: [rules-users] Accessing maps (hashmaps) keys and values in rules

2007-11-07 Thread Anstis, Michael (M.)
assume a field validation is a rule. Thanks, Mike _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of shaz Sent: 07 November 2007 02:49 To: Rules Users List Subject: Re: [rules-users] Accessing maps (hashmaps) keys and values in rules Hi, I'll try to explain my

Re: [rules-users] Accessing maps (hashmaps) keys and values in rules

2007-11-06 Thread shaz
quire the accessing of Hashmaps from the when clause. IWould there be a need to change my data model Thanks a lot, shaz - Original Message From: "Anstis, Michael (M.)" <[EMAIL PROTECTED]> To: Rules Users List Sent: Friday, November 2, 2007 5:20:38 PM Subject: RE: [rul

RE: [rules-users] Accessing maps (hashmaps) keys and values in rules

2007-11-02 Thread Anstis, Michael (M.)
can reference other bound LHS facts, you cannot bind other objects to variables. Thanks, Mike _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of shaz Sent: 02 November 2007 02:32 To: Rules Users List Subject: Re: [rules-users] Accessing maps (hashmaps) keys and values i

Re: [rules-users] Accessing maps (hashmaps) keys and values in rules

2007-11-01 Thread shaz
; <[EMAIL PROTECTED]> To: Rules Users List Sent: Friday, November 2, 2007 12:17:51 AM Subject: RE: [rules-users] Accessing maps (hashmaps) keys and values in rules By way of example (if you misunderstand how the rule engine should be used):- rule chkobj when $o : MyClass( id ==

RE: [rules-users] Accessing maps (hashmaps) keys and values in rules

2007-11-01 Thread Anstis, Michael (M.)
son Tirelli Sent: 01 November 2007 15:48 To: Rules Users List Subject: Re: [rules-users] Accessing maps (hashmaps) keys and values in rules Shaz, We strongly advise you to move to 4.0.3, but this is not related to your problem. I think you are misunderstanding something. Why are you usi

Re: [rules-users] Accessing maps (hashmaps) keys and values in rules

2007-11-01 Thread Edson Tirelli
Shaz, We strongly advise you to move to 4.0.3, but this is not related to your problem. I think you are misunderstanding something. Why are you using the global map to store your fact? Simply insert it into the working memory and it will work fine. []s Edson 2007/11/1, Shaz Tumul

Re: [rules-users] Accessing maps (hashmaps) keys and values in rules

2007-10-31 Thread Shaz Tumulak
Hi, I can't seem to make this syntax work in Drools 4.0.2. Pls. see my sample code below. class MyClass { String id; String name; MyClass(String id, String name){ this.id = id; this.name = name;

Re: [rules-users] Accessing maps (hashmaps) keys and values in rules

2007-07-19 Thread Edson Tirelli
Denis, If you are using latest build from trunk (I'm not sure it already works in MR3), you can use a simplified MVEL syntax: when Person( address["business"].phone == "" ) then ... end Although, the above will be converted into an inline-eval. Not as bad as a top level eval