Page 1 of 1

quitting process in prolog ?

Posted: Fri Aug 19, 2011 8:07 am
by hyd_ladka
Hi,

I have come across a TI which does the following in 'Advanced' tab:
Parameter tab - 3 parameters defined
Prolog tab - 4 variables defined
3 different functions used
and there is a function PROCESSQUIT at the end
Metadata tab - 3 variables + 2 functions
Data tab - 5 functions
Epilog - None

Now, my question is:
If a ProcessQuit function is used in Prolog, what is the need to declare and write functions in Metadata/Data tabs.
How does that work?
Won't the process (the entire TI process) quit completely when it encounters the ProcessQuit function?
Please note that the ProcessQuit function is not enclosed in any if/while loop. So, there is no condition that is applied.
I am pretty sure that the ProcessQuit function will get encountered.

Can someone help me on this?

Regards,
RH

Re: quitting process in prolog ?

Posted: Fri Aug 19, 2011 9:11 am
by qml
ProcessQuit will terminate that process. Metadata and Data will not be executed.
Shouldn't you ask the author of that TI why they produced such code? Maybe the need for Metadata and Data processing ceased at some point of this TI's lifecycle?

Re: quitting process in prolog ?

Posted: Fri Aug 19, 2011 10:51 am
by Christopher Kernahan
It may also have been put in there to assist in testing or debugging the Prolog, and possibly forgotten.