Skip to main content

File Exists

Description

File exists is a step in the Lookup Plugin for Process Studio Workflows. This step verifies the existence of a file where the filename comes from previous steps. The result is a Boolean flag field that gets added to the input fields in the output.

Configurations

No.Field NameDescription
1Step nameSpecify the name of the step as it appears in the workflow workspace. This name has to be unique in a single workflow.
2Filename field (RegExp)Specify 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
3Result fieldnameSpecify the name of the field that will contain the boolean flag.
4Add filename to resultEnable checkbox if you want to add the filename to the list of filenames that can be used in the next process entry.
5Include file typeEnable checkbox to specify the file type in a field.
6File type fieldSpecify the name of the field that will contain the file type as a String: "file", "folder", "imaginary"