Skip to main content

File Exists

Description

File Exists checks whether a specified file is present on the server where Process Studio runs and returns a true or false result. Use this process entry as a trigger or precondition — for example, waiting for an input file to arrive before starting a data processing workflow, or verifying that a required configuration file exists before launching an operation. The result determines which branch of the process executes next.

Configurations

Field NameDescription
Process Entry nameSpecify a unique name for the process entry, on the workspace area. A process entry can be placed on the canvas several times; and each instance of the entry must have a unique name.
FilenameSpecify the input field that will contain the filename at runtime
Note: The field supports regular expressions for the last segment (node) of the file path.
For example, C:\\Users\\Documents\\Project\\files\\file_*.txt, the regular expression will only apply to the file_*.txt segment.
Wild Cards Example:
1. * : Matches zero or more characters in the last segment.
Path: C:\Users\Documents\Project\files\file_*.txt
Explanation: To match any file in the folder, that starts with file_ and has a .txt extension.
2. ? : Matches exactly one character in the last segment.
Path: C:\Users\Documents\Project\files\file_?.txt
Explanation: To match any file in the folder where file_ is followed by exactly one character and ends with .txt, such as file_a.txt, file_1.txt
3. [abc] : Matches any one of the specified characters in the brackets.
Path: C:\Users\Documents\Project\files\file_[abc].txt
Explanation: To match any file in the folder where file_ is followed by a, b, or c and ends with .txt, such as file_a.txt,or file_b.txt, or file_c.txt