title: Magnolia compare and change Property's value logic? (in Java)
body: <p>I'm trying to compare and change a <strong>content property's value</strong> in Magnolia 5.3.2 CE （Community Edition）after the date is smaller than todays date.</p>
  
  <p>I just want to verify my logic here, and will explain some flows below. </p>
  
  <blockquote>
    <p>Flows:</p>
  </blockquote>
  
  <p>Currently I manage to integrate .xls file into magnolia content app. One of the <strong>content property's Name</strong> which being extracted out from the .xls file, I just named it as "Overdue Date" and its <strong>Value</strong> for example "17 October 2014". </p>
  
  <p>After that, there is a <strong>content property</strong> named "Status" which have a <strong>Value</strong> "A". The <strong>content property</strong> "Overdue Date" and "Status" is under the same <strong>Node</strong>. If "Overdue Date" is smaller than today date then will change the "Status" value from "A" into "X"</p>
  
  <blockquote>
    <p>I have come out with 2 concepts:</p>
  </blockquote>
  
  <p>1.) Every time, each of the content app is being created, I will find and search for its <strong>content property's Name</strong> "Overdue Date". And then get its value and compared with <strong>todayDate()</strong>. If "Overdue Date" &lt; <strong>todayDate()</strong>, then change the "Status" into "X" under the same <strong>Node</strong>.</p>
  
  <p>or</p>
  
  <p>2.) I write a function for the <strong>Scheduler Module</strong> to loop and check all the <strong>content property's Name</strong> "Overdue Date" in a <strong>Node</strong>, and then if the "Overdue Date" &lt; <strong>todayDate()</strong>, change the "Status" into "X" under the same <strong>Node</strong>.</p>
  
  <p>If there are any better ideas, please let me know...thanks.
  **If anythings not clear, I will add-ons later.</p>