title: How to access variables from a drools rule file in java without declaring them as global?
body: <p>I am developing an application which uses the following rules file. Is there a way by which i can get the values of the boolean variables <code>b1</code>, <code>b2</code> and <code>b3</code> without declaring them as global?</p>
  
  <p><strong>Drools file</strong></p>
  
  <pre><code>rule ruleone
  
  when
  $fact : AppFact( name == "abcd")
  
  then
  boolean b1= $fact.id[422] &amp;&amp; $fact.id[423]  &amp;&amp;  $fact.id[372]  &amp;&amp;  $fact.ruleId[373];
  boolean b2= b1 &amp;&amp; $fact.id[272];
  boolean b3= b1 &amp;&amp; $fact.id[273];
  
  
  end
  </code></pre>