GetFileInfo Step
Description:
This step retrieves file information from 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 named “getFileInfoDef" and open it 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 and the file path 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 a variable or global reference to store the file name, file extension, file path, file size, and the file name without the extension. Click the Save button.

- The “Logging” configuration is necessary for documentation and also measures workflow progress and 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 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 the import. Then, save the definition to confirm the changes.
Click here to download the sample file.