title: Drools how to get the last element in the list
body: <p>Here is my rule:</p>
  
  <pre><code>rule "rahultest" 
  salience 200
  no-loop true
  when
      $parentObject : parentObject()
      $child : ChildObject() from $parentObject.childs //here I want to put the code like 
  then
  
  
  end
  </code></pre>
  
  <p>I want to run this rule only for the last element how I can do that.</p>