StartBpmProcess

Syntax

bool StartBpmProcess(BpmProcessId tBpmProcess, BpmStartInfo tBpmStartInfo)

Parameters

tBpmProcess. Moniker of opened process instance.

tBpmStartInfo. Parameters for starting process for execution.

Description

The StartBpmProcess operation starts process for execution.

Comments

To execute the operation, in the tBpmProcess field specify moniker of opened process instance, and in the tBpmStartInfo field specify starting parameters.

The operation results in the logical True if the process was started for execution successfully.

Example

Below is the example of starting a process for execution. The request contains moniker of opened process instance. The response contains whether the process was started successfully.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<StartBpmProcess xmlns="http://www.fsight.ru/PP.SOM.Som">
<tBpmProcess xmlns="">
  <id>FPHHJMKJHHMPFOAEABAKHOKEEHHCOEJEGJGLLMGGDGDHJIII!M!S!BPALDENFLJHHMPFOAEILNCNMMGOPPHDKGEKLEBPIJPCPPEJFPH</id>
  </tBpmProcess>
<tBpmStartInfo xmlns="">
  <checkDeadline>false</checkDeadline>
  <checkAllLevels>false</checkAllLevels>
  </tBpmStartInfo>
  </StartBpmProcess>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <StartBpmProcessResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</StartBpmProcessResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"StartBpmProcess" :
{
"tBpmProcess" :
{
"id" : "FPHHJMKJHHMPFOAEABAKHOKEEHHCOEJEGJGLLMGGDGDHJIII!M!S!BPALDENFLJHHMPFOAEILNCNMMGOPPHDKGEKLEBPIJPCPPEJFPH"
},
"tBpmStartInfo" :
{
"checkDeadline" : "false",
"checkAllLevels" : "false"
}
}
}

JSON response:

{
"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:

Working with Processes