GetFileInfo Step

Use this step to get the file information.

Last published at: August 7th, 2025

Description:

This step fetches the file information on the application server. 

 

Inputs

  • inputFilePath – path for the file
  • varGlobalFileName - variable or global to store the file name with extension
  • varGlobalFileExt - variable or global to store the file extension
  • varGlobalNameOnly - variable or global to store the name only
  • varGlobalFilePath - variable or global to store the file path
  • varGlobalFileSize - variable or global to store the file size in bytes
 

 

Returns

  • Found – evaluates to a true result when file is found
  • NotFound – evaluates to a false result when file is not found
 

 

 

Usage:

 

 

Example:

Let’s build and execute the “getFileInfoDef” example.             

  • Create a new definition called “getFileInfoDef" and open the definition in designer mode. 
  • Drag “getFileInfo” step to the canvas.
  • Connect the dots between the “Start” and “getFileInfo” steps, as shown above.
  • Define a variable or a global to store the file information.
  • Click the “getFileInfo” step to configure its “Required” properties. Provide a name for the step. Provide the file path info on the application server. Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 

 

  • Click the “getFileInfo” step to configure its “Optional” properties. Provide the variable or global reference to store the file name, file extension, only file name, file path, and file size information. Click the Save button. 

 

  • The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved by configuring the step state and percent fields individually, as shown below. Configure the “Logging” using the following properties.

 

  • Save the process definition, create a new instance, and then execute it. Render the process instance. Click the process step to view its properties. The step should fetch and store the file information in variables or globals, as configured. 

 

Definition Sample:

You may download and extract the sample definition(s) from the link here and later import them (drag-and-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.

Note: Please verify and complete the process steps for any missing configurations, such as file path references and database connections, after import. Then, save the definition to confirm the changes.

Click here to download the sample file.