I am concerned about the engine running them in startup / shutdown mode. I am not sure exactly how this works.
Startup and shutdown refers to the startup and shutdown of the thread that is calling the proc. These two items are “user point of controls”.
1) What logic does the engine use to determine which files to load and run in startup / shutdown mode? Everything in tcl index??
Again, you need to have the procs defined in a thread. Starting and stopping the thread is when that logic kicks in.
2) We have trxid and xltp procedures in the tclprocs directory. How does it know not to run those?
Don’t start the process and thread.
3) How do I set up the files so that I can call the proc with my own set of args instead of the standard keyed list? Or do I have to always used the keyed list with MODE & MSGID as the 1st 2 keys?
You do not need to use the engine supplied args. This is mainly status information for the message referring to the metadata of the message.
There are several “types” of procs which actually refer to the template choice you make. You can still write your own proc with out using the templates provided.
That being said, it would probably be a good idea for you to view the documentation relating to the engine control and flow.