title: Passing parameters in drools
body: <p>How can I pass a parameter to set the comparing value of age(18 should be dynamic) in the below drools rule</p>
  
  <pre><code>package com.rule.models
  
  import com.rule.models.User
  
  rule "AgeCheck"
  when
      $user: User( age &lt; 18 )
  then
      System.out.println("Warning, "+$user.getName()+" is below age!");
  end
  </code></pre>