I have a component that creates a unique file name, for example:
FileName := '_tmp_' . @RunId . '.txt';
If I would use the global @RunId as part of the file name, it won't work if this component is used twice in a protocol since both would use the same global @RunId.
What else could I use to create truly unique strings (unique within the protocol) ?
A process_id (PID) per component would be nice.
EDIT: the uniqe name is used for SCP and SSH components to send tmp files to a remote server, run scripts, and get the result file back to PP
FileName := '_tmp_' . @RunId . '.txt';
If I would use the global @RunId as part of the file name, it won't work if this component is used twice in a protocol since both would use the same global @RunId.
What else could I use to create truly unique strings (unique within the protocol) ?
A process_id (PID) per component would be nice.
EDIT: the uniqe name is used for SCP and SSH components to send tmp files to a remote server, run scripts, and get the result file back to PP