Page 1 of 1

Insert Progress status in TI process

Posted: Mon Jun 05, 2023 9:45 am
by pikolikoli
Hi TM1ers,

I need to add status displaying the start and the end of a TI process.

I know that TI processes don't commit its data until the end of the process.

So I opted of another solution. I created a parent process, where I added a cellputS to my new logging cube( with status ' Running'). Then I called my original process using RunProcess.

Somehow, the cellputS didnt work even though both processes need to run in parallele. Any idea why ?

I switched now to using attributes, and it worked for me. The 'Running' status is added at the start.

I am writting this process so I can understand why CellputS didnt work but the attribute insertion worked?

Also, I would love if there is any better solution to go with ?

Thanks

Re: Insert Progress status in TI process

Posted: Mon Jun 05, 2023 2:32 pm
by BariAbdul
Hi, below discussion might help. try to use asynchronous function, which CellputS is not actually.

https://www.tm1forum.com/viewtopic.php?t=14850 Thank you.

Re: Insert Progress status in TI process

Posted: Thu Jun 15, 2023 3:19 pm
by qml
If your status cube is small (which it typically is) then one way to commit value changes done via CellPutN/CellPutS in it right away is to invoke CubeSaveData() on that cube, which commits data mid-process and serialises the cube to disk.
Normally data is committed only at the end of the transaction i.e. at the end of the parent process.