title: Comparing Object (facts) in working memory in drools
body: <p>I am reading an excel sheet through DRT (rule template) and then converting it in to Object of a class through a static method in Java class. and also inserting it in to working memroty. In this way, working memory is filled up with all the facts from Excel sheet. </p>
  
  <p>Now, I am sending facts through Java class in INSERT() through session. 
  I need to match two similar object and return the matched objects from working memory.
  As for Example:</p>
  
  <p>Read from Excel and inserted in to the Working memory.</p>
  
  <pre><code>Person(name == "Kumar", Age == 60, status == true);
  </code></pre>
  
  <p>Now in Java class, through session I am inserting the following object:</p>
  
  <pre><code>Person(name == "Kumar", Age == 60 );
  </code></pre>
  
  <p>and then I need to set <code>Status = true</code> by comparing the two Objects.</p>
  
  <p>I need to write the rule that will compare both objects.</p>
  
  <p>Please suggest some way.</p>
  
  <p>Thanks
  Shorav</p>