+
+ let workflowCollection = "";
+ let workflowPath = "";
+ if (process?.containerRequest?.mounts && process.containerRequest.mounts[MOUNT_PATH_CWL_WORKFLOW]) {
+ const wf = process.containerRequest.mounts[MOUNT_PATH_CWL_WORKFLOW] as JSONMount;
+
+ if (wf.content["$graph"] &&
+ wf.content["$graph"].length > 0 &&
+ wf.content["$graph"][0] &&
+ wf.content["$graph"][0]["steps"] &&
+ wf.content["$graph"][0]["steps"][0]) {
+
+ const REGEX = /keep:([0-9a-f]{32}\+\d+)\/(.*)/;
+ const pdh = wf.content["$graph"][0]["steps"][0].run.match(REGEX);
+ if (pdh) {
+ workflowCollection = pdh[1];
+ workflowPath = pdh[2];
+ }
+ }
+ }
+