bool StartBpmProcess(BpmProcessId tBpmProcess, BpmStartInfo tBpmStartInfo)
tBpmProcess. Moniker of opened process.
tBpmStartInfo. Parameters for starting process for execution.
The StartBpmProcess operation starts process for execution.
To execute the operation, in the tBpmProcess field specify moniker of opened process, and in the tBpmStartInfo field specify starting parameters.
The operation results in the logical True if the process was started for execution successfully.
Below is the example of starting a process for execution. The request contains moniker of opened process. The response contains whether the process was started successfully.
{
"StartBpmProcess" :
{
"tBpmProcess" :
{
"id" : "FPHHJMKJHHMPFOAEABAKHOKEEHHCOEJEGJGLLMGGDGDHJIII!M!S!BPALDENFLJHHMPFOAEILNCNMMGOPPHDKGEKLEBPIJPCPPEJFPH"
},
"tBpmStartInfo" :
{
"checkDeadline" : "false",
"checkAllLevels" : "false"
}
}
}
{
"StartBpmProcessResult" : "1"
}
public static bool StartBpmProcess(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tStart = new StartBpmProcess()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker },
// Start parameters
tBpmStartInfo = new BpmStartInfo()
{
checkDeadline = false,
checkAllLevels = false
}
};
// Start process for execution
var result = somClient.StartBpmProcess(tStart);
return result;
}
See also: