Passing workflowId from xml

2 views
Skip to first unread message

Binita Shrestha

unread,
Mar 8, 2026, 6:37:07 PM (16 hours ago) Mar 8
to xnat_discussion
Hi everyone, 
I am trying to save pipeline execution details (such as pipeline name, user, workflow ID, etc.) when a user runs a pipeline via the XNAT UI. The goal is to store these details so that I can later update the workflow status from my queue system.

I am facing problem with  passing worklfowId. To do this, I am attempting to pass the workflow ID from the pipeline XML to my CLI application. However, I have not been successful so far.

In my pipeline XML, I tried passing the workflow ID like this:

<argument id="workflowId">
    <value>^WORKFLOWID^</value>
</argument>

But when the CLI receives the argument, it gets the literal string ^WORKFLOWID^ instead of the actual workflow ID value.

I am currently using XNAT version 1.8.4.

Has anyone successfully passed the workflow ID (or other workflow metadata) from a pipeline XML to a CLI script in XNAT? If so, what is the correct way to reference the workflow ID in the pipeline XML?

Any guidance would be appreciated.

Thank you
Reply all
Reply to author
Forward
0 new messages