TRIRIGA

 View Only

 Question about scheduling import/export of tab separated flat file

HIROYA OGIHARA's profile image
HIROYA OGIHARA posted Wed August 20, 2025 02:23 AM
I have a question about scheduling the following processes:
      - Import BO from a tab separated flat file.
      - Export BO to a tab separated flat file.
 
We are considering using the following TRIRIGA functions to these import/export processes:
      Import (Tab separated flat file --> BO): 
         - Data Integrator or Integration Object 
      Export (BO --> Tab separated flat file): 
         - Integration Object
                                     
Data Integrator has a scheduling function (batch upload), however Integration Object does not have a scheduling function.
We thought we may be able to use Job Scheduler to schedule import/export processes of Integration Object. However it seems that the Job Scheduler can schedule only ETL Jobs, that can output BO data to BO (Fact table(triMetricFact)(Kettle Transformation), Classifications(Rebuild Hierarchy)) , not to a flat file.
 
My question is:
 
  How can we schedule import/export of Integration Object?
I'd really appreciate it if you answer my question.
Regards, Ogi
Mark Johnson's profile image
Mark Johnson IBM Champion

Hey Ogi,

I'd recommend against using Data Integrator as its very limited and you don't have much control with it. Integration Object is the better approach. I ran in to this same issue many many years ago and I even have an article on LinkedIn about a surprise that I found with Integration Object. I had customized the Integration Object BO/Form in order to allow creating of scheduled events, and then the scheduled events would execute the job. However, triIntegration is considered a platform maintained object so the platform will recognize the change, and OM the OOTB versions of the object on startup. You could build a separate custom object and use scheduled events with it. Then when it fires you could have it execute your integration object job.  That's all very high level. So, I'd recommend you look in the app builder guide and read up on scheduled events.

--Mark

HIROYA OGIHARA's profile image
HIROYA OGIHARA

@Mark Johnson

Thank you, Mark.
 
>Integration Object is the better approach.
I agree with you.
 
It seems your approach would be difficult for me to implement. Anyway, I'll look in the app builder guide and read up on scheduled events.
 
On the other hand, I studied Integration Object ( https://www.ibm.com/docs/en/tap/5.0.0?topic=object-integration-execution ) and come up with the following approach using TRIRIGA REST API. What do you think of my approach?
Export case
1.Define Integration Object record (named "ExportToFlatFile" here) to export BO data to a tab separated flat file. 
2.Make a shell script that has the following processes:
    1.Call TRIRIGA REST API to execute Integration Object record "ExportToFlatFile".
    2.Get the exported flat file from TRIRIGA server by File Transfer command like SFTP.
3.Call the shell script made in #2 by the scheduling tool (e.g. crontab in case of Linux).    
Import case
1.Define Integration Object record (named "ImportFromFlatFile" here) to import BO data from a tab separated flat file. 
2.Make a shell script that has the following processes:
    1.Put a flat file for import to TRIRIGA server by File Transfer command like SFTP.
    1.Call TRIRIGA REST API to execute Integration Object record "ImportFromFlatFile".
3.Call the shell script made in #2 by the scheduling tool (e.g. crontab in case of Linux).    
(I assume the shell script runs on a different server from TRIRIGA.) 
 
Regards, Ogi