title: JBoss drools checking value of HashMap by passing a key
body: <p>Is there a way I can check the value of a HashMap in "when" block, by passing a key.</p>
  
  <p>Something like(may not be the actual way)</p>
  
  <pre><code>rule "checkHM"
  when
    $account : Account( hm.get("A") == "B") 
  then
    System.out.println("HashMap has value B" );
  end  
  </code></pre>
  
  <p>Here Account is a class and hm is a HashMap in this class.
  hm has key/value pair as "A"/"B".</p>
  
  <p>I hope the question is clear.</p>