WINRUN

Usage

TIBCO iProcess Workspace (Windows)

Warning: (iProcess only) This expression is not available to the TIBCO iProcess Script Server Plug-in. Therefore, even though you can successfully enter the expression in your iProcess Script plug-in definition, it will not be processed by the iProcess Engine. It will return SW_NA.

Start a program on iProcess Workspace (Windows).

Note: This function differs from SERVERRUN in that iProcess never waits for the program to exit before continuing, and that no abox file processing is performed.

Syntax

WINRUN (cmdline, show)

where:

cmdline is a text string specifying the command line which would be used to start the application; this can contain parameters specified in the same way as for SERVERRUN.
show is one of the following numeric values, specifying how the application window is shown initially, unless overridden by the application.

Value

Initial window view

0, 1, or >5

Show the window normal size, and activate it

2

Show the window minimized, and activate it

3

Show the window maximized, and activate it

4

Show the window normal size, do not activate it

5

Show the window minimized, do not activate it

Returns

One of the following numeric values:

Value

Description

-6

cmdline too long to run (maximum 127 characters).

-1

cmdline is blank or SW_NA.

0 - 31

iProcess Workspace (Windows) error code.

>= 32

Success (instance handle returned – an integer of up to 6 digits).

Examples

TIBCO iProcess Modeler:

WINRUN ("EXCEL " + datafile + ".XLS", 1)

TIBCO Business Studio:

IPEExternalUtil.WINRUN("EXCEL " + datafile + ".XLS", 1);