Show contents 

Web Service > Web Service Operations > Working with Processes > SaveBpmProcess

SaveBpmProcess

Syntax

SaveBpmProcessResult SaveBpmProcess(BpmProcessId tBpmProcess)

Parameters

tBpmProcess. Moniker of opened process.

tArg. Operation execution parameters.

Description

The SaveBpmProcess operation saves changes in a process.

Comments

To execute the operation, in the tBpmProcess field specify moniker of opened process. The process should be opened for edit. The moniker can be obtained after executing the OpenBpmProcess operation.

The operation results in the updated process version.

Example

Below is the example of saving changes in a process. The request contains moniker of opened process. The response contains new process version.

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">
<SaveBpmProcess xmlns="http://www.fsight.ru/PP.SOM.Som">
<tBpmProcess xmlns="">
  <id>NCPHMFOLCJKEGOAEDCHDGJJIFKGJAHNEMLOMCOEGJCNMDAIG!M!S!BPABMKPGOLCJKEGOAECHPFJNIBANBFMMJELIKODFECPOHPNHDO</id>
  </tBpmProcess>
  </SaveBpmProcess>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<SaveBpmProcessResult 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">
  <parid xmlns="">61</parid>
  </SaveBpmProcessResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"SaveBpmProcess" :
{
"tBpmProcess" :
{
"id" : "NCPHMFOLCJKEGOAEDCHDGJJIFKGJAHNEMLOMCOEGJCNMDAIG!M!S!BPABMKPGOLCJKEGOAECHPFJNIBANBFMMJELIKODFECPOHPNHDO"
}
}
}

JSON response:

{
"SaveBpmProcessResult" :
{
"parid" : "61"
}
}
public static SaveBpmProcessResult SaveBpmProcess(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new SaveBpmProcess()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker }
};
// Save changes
var result = somClient.SaveBpmProcess(tGet);
return result;
}

See also:

Working with Processes