[jboss-user] [JCA/JBoss] - How to use Hashtable in JBoss Rules

vivonpereira do-not-reply at jboss.com
Thu Oct 5 00:40:27 EDT 2006

I have an object containing Hashtable. I want to take the value from the hashtable and use it for the LHS side of the rule. How do I do that? 

Object: Test 
Hashtable in Test: inputHT (the hashtable contains the key as 'age' and value as '21'. Like: inputHT.put(age, new Integer(21)) ) 

The rule defined is: 

rule "male" 
t:Test(inputHT.get("age") >= 21) 

It throws error as: unexpected token 'inputHT' 
mismatched token .... expecting type )...... 
Please reply soon

Also tell me how to use variables in Object within another object in Rules defining process. 
For eg: A variable skill1 (String)  present in Skill object, which in turn is present in Employee object. How to define the rule for skill1.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976211#3976211

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976211

More information about the jboss-user mailing list