Is there a way to import user-friendly date values into TRIRIGA?


Is there a way to import date/time values into TRIRIGA using user-friendly date formats like ‘dd/mm/yyyy hh:mm:ss’ instead of epoch time? All date/time values are stored in the TRIRIGA database as epoch time (number of milliseconds from 01/01/1970 00:00:00 GMT/UTC).

You cannot import a date value directly into a TRIRIGA date/time field using user-friendly date formats — you have to import using epoch time. What you can do instead is import the user-friendly date/time value into a text field in TRIRIGA and then use a workflow to convert the value to epoch time and store that converted value in the corresponding date/time field. One way of doing this is the following:

  • 1. Within your Business Object, create a custom text field that you can use to store your date/time value in a user-friendly format such as ‘dd/mm/yyyy hh:mm:ss’.
  • 2. Assuming you are importing your data using Data Integrator, do the following:
    • In the Data Integrator header, specify the text field you created to store your user-friendly date/time value.
    • Create an asynchronous workflow to listen for triUploadHidden actions (or whatever action you choose to associate with your data upload). Have that workflow check to see if the date/time field in the record is null and, if so, to take the the user-friendly date/time specified in your text field and map it as an epoch time value in the actual date/time field.
    • When uploading your text file to Data Integrator, specify an action that is in line with what your workflow expects. IBM typically recommends using triUploadHidden, but you could use triCreateDraft or even create a cstUpload action which could be used to make the choice show up first in the list.

Continue reading

Leave a Reply

Fill in your details below or click an icon to log in:

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 )

Google+ photo

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

Connecting to %s