Page 1 of 1

Reload Data from Filesystem

Posted: Fri Sep 30, 2011 3:27 pm
by CoN73mP7
Hi,
is there any way, to tell the TM1 Server to reload the Data from the Filesystem with a TI Process or a API call.

I have made changes in the TM1 Server files and want the server to load them while running. At the moment it just works when restarting the Server :-/

Best Regards
Alex

Re: Reload Data from Filesystem

Posted: Fri Sep 30, 2011 4:26 pm
by tomok
No, not without recyclng the service.

Re: Reload Data from Filesystem

Posted: Fri Sep 30, 2011 4:29 pm
by qml
Generally it's not possible, however... I've never tried this... but what if you unload a cube, replace the *.cub file and then load it back? Will the server be able to pick up the updated cube? Just a stab in the dark... Will test it later.

Re: Reload Data from Filesystem

Posted: Fri Sep 30, 2011 5:15 pm
by CoN73mP7
I think that a cube should be possible because of its loadFile() Function in the API.

My problem however is, that I want to load a process file wich i have created manually

Re: Reload Data from Filesystem

Posted: Fri Sep 30, 2011 5:36 pm
by bagovino
You can create a process through the API and register it (or update an existing one). However, it isn't trivial.

First you create the empty process (TM1ProcessCreateEmpty), then there are about 30 or so properties for the process that you will have to set values for, then check the process (TM1ProcessCheck), and then you register it (TM1ObjectRegister) or update the existing one (TM1ProcessUpdate).

You can get a handle to an already existing process and look at each property to determine the value type and the actual value stored in it. Most of them aren't documented though.

Re: Reload Data from Filesystem

Posted: Sat Oct 01, 2011 2:35 pm
by CoN73mP7
That's not what I'm looking for. I have created a noew .pro file and I want to integrate it while the server is running. So far I just manage to integrate the Process by restarting the server.

But it seems like there is no way to do it :-(

Re: Reload Data from Filesystem

Posted: Sat Oct 01, 2011 10:34 pm
by Alan Kirk
CoN73mP7 wrote:That's not what I'm looking for. I have created a noew .pro file and I want to integrate it while the server is running. So far I just manage to integrate the Process by restarting the server.

But it seems like there is no way to do it :-(
Bagovino has already pointed you to the only way. As you've doubtless discovered, replacing a TI .pro file with another one does not cause the new process to be used. This implies that the .pro files are read at startup and updated when one is modified through the GUI and saved. The consequence of that is that you can only modify the files by changing them in memory via tha APU and saving them. I started on just such a project a few months ago but ran into a problem with either the variables or the parameters and it hasn't been enough of a priority for me to pursue it. (IBM support were less than useful with this too.)

However someone has pursued it and has created the Vizier utility which allows hot promotion of objects to be done. From what I hear they probably ran into some of the same problems that I did. (Some users have told me that you still need to open and re-save some processes before they'll work.) If your pockets will stretch to it, it may be an option.

(And I'd like to blow a special raspberry to the idiot who designed the Lenovo (hey, it's a work computer; I'd never buy one on my own dime) T420 keyboard. The one that has a backpage key directly over the top of the back arrow key. Meaning that if you're composing a message amd only just slightly miss the back arrow key... Another fine example of designers who don't actually use a system being turned lose in designing one.)

Re: Reload Data from Filesystem

Posted: Mon Oct 03, 2011 3:11 pm
by bagovino
I started on just such a project a few months ago but ran into a problem with either the variables or the parameters and it hasn't been enough of a priority for me to pursue it. (IBM support were less than useful with this too.)
Thread derail here, but what issue did you run into? I've been working on something recently and spent quite of bit of time figuring out how process variables are stored, so maybe I can help you.

Re: Reload Data from Filesystem

Posted: Thu Mar 29, 2012 6:57 am
by lotsaram
Alan Kirk wrote:(And I'd like to blow a special raspberry to the idiot who designed the Lenovo (hey, it's a work computer; I'd never buy one on my own dime) T420 keyboard. The one that has a backpage key directly over the top of the back arrow key. Meaning that if you're composing a message amd only just slightly miss the back arrow key... Another fine example of designers who don't actually use a system being turned lose in designing one.)
Actually I just got stung by this (on my work Lenovo) but found the situation could be rescued by pagefwd or Alt+right arrow.