Never use long integer values in XPRESS

Posted on April 27, 2007. Filed under: SUN IdM |

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>
Advertisement

Make a Comment

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Liked it here?
Why not try sites on the blogroll...

Follow

Get every new post delivered to your Inbox.