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"
        when
                t:Test(inputHT.get("age") >= 21)
        then
                System.out.println("Adult");
end

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

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975740
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to