Previous Topic

Book Contents

Book Index

Next Topic

Start External Program

This activity starts an external program on both the Rich and Web clients.

There are several specifics for the Web client to be noted:

  • Both 'allow_applets' and 'allow_exec_applet' web parameters (specified in web.xml for instance), have to be set true.
  • User has to confirm the run of ActiveX in Internet Explorer and to trust the USU self-signed applet.
  • A try to execute the workflow activity on the Web client with disabled usage of applets or without permission from user is reported by alert message window in the browser.
  • Do not use WAIT_FOR = true on the Web client. It locks browser GUI until the program returns; the page in the browser is not refreshed until then.

Activity Parameter

Function / Meaning

Name

Name of the program to be executed (e.g. 'PSpad.exe').

Path

Program path to the executable file (e.g. C:\Program Files\PSPad editor).

Args

Arguments to be passed to the executed program, separated by spaces.

Example: C:\Temp\File1.txt C:\Temp\File2.txt

If the space is part of an argument value, pass "commandArray" on the input transition instead.

Example1: _output.put("commandArray", ["C:\\Program Files\\PSPad editor\\PSPad.exe", '"C:\\Temp 2\\File1.txt"', '"C:\\Temp 2\\File2.txt"'])

Example2: execute Visual Basic script

_output.put("commandArray", ["cmd.exe", "/C", '"C:\\Temp 2\\Test.vbs"'])

CommandArray overwrites values of both the path, name and args parameters. It can be PyList, ApiList, or String jarray.

Env

Environment variable settings in format 'name=value'. If not specified, the program will inherit the Valuemation environment settings.

Wait

When false, activity returns 0 on an output transition and a workflow can continue immediately after program is started.

When true, workflow will be waiting until external program finishes. Activity return code will be then the exit value of the external program.

Note that web client GUI is frozen util external program returns. Therefore it is recommended not to use wait = true on web client.

Input Arguments

Function / Meaning

Args

Please see the 'Activity Parameter' table above.

CommandArray

Please see the "Args" activity parameter above.

Env

Please see the 'Activity Parameter' table above.

EnvironmentArray

Please see the 'Env' parameter above.

In

Please see the common parameters/arguments.

Name

Please see the 'Activity Parameter' table above.

Path

Please see the 'Activity Parameter' table above.

Wait

Please see the 'Activity Parameter' table above.

Output Arguments

Function / Meaning

Out

Please see the common parameters/arguments.

Return code

If 'wait' is true, then the return code is an integer value returned by the executed program. If 'wait' is false, then the return code is 0.

See Also

Important Activities

Add to Role

Add Attachment

Allocation Simulation

Assessment Simulation

Assign Task

Attachment Dialog

Birt Report Parameter

Calculate Duration

Catalog Refresh

Catalog to Text

Catalog View Close

Catalog View Select

CatalogView Set Query

CatalogView Switch

Change Editor Mode

Change Editor Title

Check Clock Time Intervals (Tariffe)

Check Escalation Records

Check Finance Manager

Check Quantity Scale (Price)

Check Scale Boundary (Price)

Check Status on Update

Check Time Intervals (Periods)

Choose Attribute

Choose File

Client Change

Close All Catalogs

Compare Attributes

Compute N/A Values

Condition

Copy Input Stream to Output Stream

Copy Input Stream to String

Copy to Clipboard

Create Bookmark

Create Query

Create Output Stream

Delete All Records on Table Lv075

Delete Object

Determine Where-Condition

EditorView Close

EditorView Generate the Key

Editor Need Save

EditorView Save

Editor View Set Value

Editor Transaction SyncPoint

Generate PDF Report

Generate Report

Generate XML Data Stream

Get Attribute From Object Type

Get from Hash Map

Get Help Keys

Get Selected Text from Field

Input GUI for a Mail

Message

Meta Workflow Delete

MetaWorkflow new/edit

MetaWorkflow Lock/Unlock

MetaWorkflow Take Lock

New Object

Open Action Customizer

Open Attachment

Open Calculation Customizer

Open Catalog Customizer

Open Catalog View

Open Configuration

Open File

Open Help

Open BO Customizer

Open Object Type Customizer

Open Object Type Translation Editor

Open Mass Move

Open Metamodel Exporter

Open Move

Open Query Editor

Open Process Modeller

Open Report Editor

Open Relation Customizer

Open Rule Customizer

Open User Manager

Open Value Set Customizer

Open View Customizer

Perform Task

Print to Text

Print to Preview

Put in Hash Map Activity

Relation Link Existing Start

Relation Link Existing Finish

Relation Link New Start

Relation Link New Finish

Remove Link

Remove from Role

Removes Objects or Selected Rows from the Current Catalog View

Render Birt Report

Run Save Action on Editor

Save File

Save Text into File

Script (System Activity)

Send Mail

Send Message

Send Mail with Outlook Activity

Set Catalog

Set Query

Set Relational Attributes for Transient Relations

Set a Value for Attribute in Editor

Set a Value for Attribute of Object Type

Settings of Foreign Keys for Transient Relations

Show Birt Report

Show Web Page

Simple Input

Start Escalation

Start from Catalog

Start from CTI

Start from BO Editor

Start from Relation

Start from SideBar

String to Text

Subworkflow

Tally Connect Tester

Take Over Solutions

Toast Message

Transfer

Transfer Create

Transfer (correction) Create

Transfer Global Change

Transfer (correction) Global Change

User Decision

Workflow - Start

Workflow - End

Workflow Transaction SyncPoint

Write Object to a String

XML Export

XML Import