Hi Pat,
Thanks for your response. I am getting the execution id properly. I am
looking for a TS_UIMsg_EndExecution UI MEssage event. When I receive
the event, I get the execution's id and compare it to the id of the
execution that was created via the TS_EngineNewExecution. When they are
equal, I then assume that all executions are done and process
appropriately. Instead of performing a TerminateAll, I am using
TS_ExecutionTerminate to terminate the execution that was started.
Perhaps you can confirm my understanding of what is going on. I am
assuming that when I instantiate an execution via
TS_EngineNewExecution, child executions are created by the process
model as needed based on the model cofiguration, i.e. number of
sockets, etc. I am also assuming that if the execution that I
instantiated is terminated by the engine, that all of its
children are terminated before the parent is terminated. Upon
termination of the parent, the Application Manager sends the
TS_UIMsg_EndExecution event. Is this correct?
Thanks,
John