0 Replies Latest reply on Oct 3, 2006 9:18 AM by Vivon Pereira

    How to use Hashtable in Rules

    Vivon Pereira Newbie

      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