copyFile Step

Last published at: May 2nd, 2023

Description:

Copies a file from one location to another on the server.  

Inputs

  • filePath – path to the source file on the App server
  • copyToDirectory – directory path to copy the file to on the App server
  • newFilePathVarGlobal – Variable/Global to store new file path

Results

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

Usage:

Example:

Let’s build and execute the copyFileDef example.         

  • Create a new definition called “copyFileDef”
  • Select the definition and click the “design” button
  • Drag a "copyFile" step to the canvas and connect the steps as shown in the graphic above
  • Configure Variable variable.newFilePath as string 
  • Click on the “copyFile” step to configure its properties as shown on the below graphic

  • Save the process definition. Create a new process instance and execute. The process step should copy the file from one location within the app server and the new file path is stored in variable.newFilePath as configured.