It's all about the answers!

Ask a question

RPE - Output filename using template variable?


Glyn Costello (1406555) | asked Jan 24 '22, 4:54 p.m.
Hi,

Is it possible for tell RPE name the output file ([name].doc or [name].docx) using a variable from the document template? Like the module's name or the work item summary or the test case ID?

One answer



permanent link
Subramanya Prasad Pilar (4.6k16) | answered Jan 25 '22, 12:05 a.m.

While configuring output in RPE, you can use an environment variable/system variable, but not template variable. Suppose you have environment variable "opfilename" with value "TestCase_101.docx", providing the "Path" property for Word output as C:\${opfilename} will result in creation of output file C:\TestCase_101.docx.
If you can come up with a script to set environment variable through RPE template, you can use environment variable value in output path.

Since you get the value (of module name or WI summary) only during document generation, you cannot use Macro with parameters or Post-Command (where you should know the value beforehand).

You can go through blog https://jazz.net/blog/index.php/2020/02/03/data-driven-approach-for-generating-multiple-output-documents-with-ibm-engineering-lifecycle-optimization-publishing/ where "Document Break" element is used to dynamically set the file name (to get individual files as deliverables).

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.