Refrain from using database-specific keyword like
SYSDATE. Instead, use functions that you can
implement directly through the UDM. Let's consider
an example:
Let's say, you need to send e-mails to a group
of people at one go. You can build this feature
by using an action sequence. A check is made at
the back-end to verify the date on which the
mail needs to be sent to any given group. To
make this verification, you could apply
a filter to a node in an action sequence.
It goes something like this:
table_name.column_name
= sysdate (where column_name is a date field)
The
filter should be able to retrieve Sysdate,
match it with the actual date specified for the
mails to be sent, and thereafter, fetch the
correct records from the table concerned. However,
this doesn't seem to work.
Incidentally, if you set date in the filter as
greater than or equal to the sysdate or even less
than or equal to the sysdate, the filter works out
fine. For one thing, Sysdate is
Oracle-specific. For another thing, there is a
good bit of SQL parsing that the zeroCode engine
performs, and the use of features like the one
described above, violates the requirements for the
parsing.
A better method to get this workng would be to
use an action sequence element that gets the
current time using date.timeNow() or the utility
data port instead of what is being tried above.
|