I have a script that is triggered by the handshake tag coming from a Transaction group. The script gathers data, triggers the Transaction group again and then does some housekeeping.
It loops thru this process until all data has been processed.
What I want to know is what would happen if the trigger tag for a script is set while the script is running.
Would a second instance of the script be started before the original instance completes?
So, no. It will not trigger in parallel. However, there's nothing in the scripting subsystem that will keep the transaction group from running again, and that will queue a tag change event to be processed when the running event finishes.
In cases where I need scripting to participate in a process, I move the entire transaction group's functionality to the script. Trigger the whole script with the TG's original trigger, not with any TG completion tag.
Thanks for the feedback. I am glad that I do not have top worry about simultaneous execution of the same script.
I am using an integer as the trigger to the transaction group, incrementing it's value by 1 for each execution, with the stored procedure Transaction group set to execute once while trigger is active. It works very well.