This procedure lets you launch a new process from another application using HTTP parameters. It applies to WorkflowGen versions 5 and 6. Follow the instructions below for your version of WorkflowGen.
Note: For security reasons, the impersonation feature is restricted to allowed users, as defined in the ProcessesRuntimeWebServiceAllowedUsers entry in the \wfgen\ws\web.config (version 5) or \wfgen\web.config (versions 6 and later) file.
WorkflowGen versions 6 and later
Via WS API: StartProcess
Method definition
-
public int StartProcess(string processName, bool test, string context): Returns the created request ID if successful
Required parameters
-
processNameType:
stringDescription: Name of process to launch
-
testType:
boolDescription: Launch process in test mode?
-
contextType:
stringDescription: XML structured IN/OUT parameters to send to the process start. (See the Web Services API: WorkflowContext specifications and usage article for instructions on how to create context parameters.)
Optional parameters (StartProcessHeader)
-
ImpersonateUsernameType:
stringDescription: Username of impersonating user
-
ProcessIdType: int
Description: Process ID
Note: This parameter is to be used independently, without the
processNameandtestparameters. -
ProcessVersionType:
intDescription: Process version
Note: To be used with
processNameonly.
Download SDK_CS_RemoteLaunchSOAP_v6_1.zip, unzip it, and follow the instructions in the included setup.txt file for an example of usage.
WorkflowGen version 5
Via WS API: StartProcess
Method definition
-
public int StartProcess(string processName, bool test, string context): Returns the created request ID if successful
Required parameters
-
processNameType:
stringDescription: Name of the process to launch
-
testType:
boolDescription: Launch process in test mode?
-
context
Type:
stringDescription: XML structured IN/OUT parameters to send to the process start. (See the Web Services API: WorkflowContext specifications and usage article for instructions on how to create context parameters.)
Optional parameter (StartProcessHeader)
-
ImpersonateUsernameType:
stringDescription: Username of impersonating user
Download SDK_CS_RemoteLaunchSOAP_v5.zip, unzip it, and follow the instructions in the included setup.txt file for an example of usage.