title: Drools using from inside accumulate from
body: <p>In drools I can do something like this</p>
  <pre><code>rule &quot;rule1&quot;
      dialect &quot;java&quot;
      no-loop true
      
      when
         $order: Order( $cust: customer )
         Customer(id == &quot;213123&quot;) from $cust
  
      then
  end
  </code></pre>
  <pre><code>class Order {
     private String areaCode;
     private Customer customer;
  }
  
  class Customer {
    private String id;
  }
  
  </code></pre>
  <p>I want rule to identify if there are more than 3 different customers that ordered from same areaCode within an hour. Suppose a new order came in and I want to checkout if there is 3 or more orders from different customers to the same area within an hour.</p>
  <pre><code>rule &quot;rule2&quot;
      dialect &quot;java&quot;
      no-loop true
      
      when
          $order: Order( $cust: customer, $areaCode: areaCode)
          Customer( $custId: id) from $cust       
          Set( size &gt;= 3 ) from accumulate ( 
              Order( $id: id, areaCode == $areaCode, customer.id != $custId ) over window:time( 1h ),
              collectSet( $id ) )
  
      then
  end
  </code></pre>
  <p>Can I access <code>customer.id</code> the way that I use in <code>rule 1</code> within from accumulate?</p>