Replace word document with variables & globals

Last published at: April 26th, 2021


Replace word document with variables & globals


  • templateName – Choose the desired Report Template
  • outputFileName--Name of the output file
  • varName--Variable/Global to hold the output file path 


  • True – step executed successfully
  • False – step failed to execute 



Let’s build and execute the WordDocReplacerDef example.          

  • Create a new definition called “WordDocReplacerDef
  • Select the definition and click the “design” button
  • Drag a WordDocReplacer step to the canvas
  • Connect the dots between the start and WordDocReplacer step 

  • Click on the “WordDocReplacer” step to configure its properties
  • Configure the following values for the properties as shown on the below graphic

  • Click the “Save” buttonSave the workflow definition, create a workflow instance and execute. Step should replace the word doc.