Never use long integer values in XPRESS
Though XML Object Language has a <Long> data type for long integers, XPRESS Language has not a similar <long> data type. Therefore, in forms, workflows, email templates you can not use dynamic long integer values, even comparing long values returned from Java object methods. For instance, if you have two date objects and want to compare them, you should not use such following statement :
<gt>
<invoke name='getTime'>
<ref>date1</ref>
</invoke>
<invoke name='getTime'>
<ref>date2</ref>
</invoke>
</gt>
Depending on returning long integer values of java.util.Date.getTime() method of your Date instances and their casted integer values, you would get either true or false!!! Particularly for java.util.Date class, you must prefer to call date1.after( date2 ) with following XPRESS equivalent:
<invoke name='after'>
<ref>date1</ref>
<ref>date2</ref>
</invoke>
