Start TM1 process remotely without using the API
Posted: Thu May 13, 2010 10:11 am
I haven't managed to get the API to connect yet so I found this workaround, somebody might find it useful.
Basically you can use a TI process to detect the existence of a file. So what you can do is create a file from your external application when you want the TI process to start. You can then create a TI process that is scheduled to run say every 10 seconds. If it detects this file, then it kicks off your main process.
You also need to do a couple of housekeeping tasks to prevent repeatedly kicking off the process.
Namely, delete the run file once the TI process kicks and create an 'in progress' file so that the external app knows not to create a new 'run' file (unless of course that's what you want it to do).
The TI process can also write a completed file which the external process can use if need be.
You need to delete the files at appropriate stages depending on what kind of workflow you are after.
Basically you can use a TI process to detect the existence of a file. So what you can do is create a file from your external application when you want the TI process to start. You can then create a TI process that is scheduled to run say every 10 seconds. If it detects this file, then it kicks off your main process.
You also need to do a couple of housekeeping tasks to prevent repeatedly kicking off the process.
Namely, delete the run file once the TI process kicks and create an 'in progress' file so that the external app knows not to create a new 'run' file (unless of course that's what you want it to do).
The TI process can also write a completed file which the external process can use if need be.
You need to delete the files at appropriate stages depending on what kind of workflow you are after.