FILEEXISTS

Usage

TIBCO iProcess Workspace (Browser)

TIBCO iProcess Workspace (Windows)

Check if a file exists.

Syntax

FILEEXISTS (filename)

where filename is a text string specifying the name of the file to be checked, as either a simple filename or full pathname.

The following environment variables may be used in a pathname:

TEMP, the temporary directory on the iProcess Workspace client.
HOME, the user’s queue directory on the server, SWDIR\queues\username.
Note: This directory is not created automatically. This means that before using this environment variable you should check that it exists, otherwise the function will fail.

Returns

One of the following Boolean values:

Value

Description

TRUE

File exists

FALSE

File does not exist

Examples

TIBCO iProcess Modeler:

This command checks to see if a log file exists in the temporary directory.

FILEEXISTS ("%TEMP%\log.txt")

TIBCO Business Studio:

IPEFileUtil.FILEEXISTS("%TEMP%\\log.txt");