CALL

Usage

TIBCO iProcess Workspace (Browser)

TIBCO iProcess Workspace (Windows)

This can be used to run a script that is available to the procedure. For more information about scripts, see “Using Scripts” in the TIBCO iProcess Modeler Advanced Design .

This function can also be used within a script to call another script. This enables you to call a script, run it and then return back to the original script. You can also recursively call other scripts up to the maximum limit defined by the MAX_SCRIPT_CALL_DEPTH parameter in SWDIR\etc\staffcfg. For example, when defining a script called script1, you can use the CALL function to call script2. script2 can call script3 and script3 can call script4 and so on.

Syntax

CALL (scriptname)

where script is a text string specifying the name of the script being called.

Returns

One of the following numeric values:

Value

Description

-1

Error executing or error with syntax when checking the script

0

Script not found

1

Success

Example

CALL (“myscript”)