GetBpmStepOperations

Syntax

BpmStepOperationStatusResult GetBpmStepOperations(BpmProcessId tBpmProcess, GetBpmStepOperationsArg tArg)

Parameters

tBpmProcess. Moniker of opened process instance.

tArg. Operation execution parameters.

Description

The GetBpmStepOperations operation gets a list of operations available for step of executed process instance.

Comments

To execute the operation, in the tBpmProcess field specify moniker of opened process instance. The moniker can be obtained after executing the OpenBpmProcess operation. In the tArg.instId field specify unique key of executed process instance. The key is available in the list collection of execution results of the GetProcessInstances operation. In the tArg.guids field specify step GUIDs. GUIDs can be obtained using the GetBpmMonitoringWorkspace operation.

The operation results in the collection of elements with information about operations available for steps.

Example

Below is the example of a list of operations available for executed process steps. The request contains moniker of opened process, process instance key, and step GUIDs. The response contains the obtained list of available steps.

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">
<GetBpmStepOperations xmlns="http://www.fsight.ru/PP.SOM.Som">
<tBpmProcess xmlns="">
  <id>CDIKMKCKEHJCGOAELMMPKEGKAJIPBMFELKNPPPKHHFAHIIHI!M!S!BPFGPGKNCKEHJCGOAEHJDEHIPJFHBPODGEKJCMFANHBFPHKIDC</id>
  </tBpmProcess>
<tArg xmlns="">
  <instId>51021</instId>
<guids>
  <it>{AAC9F54F-EBED-4106-8C77-9356E14A5241}</it>
  <it>{7D079FAF-FC27-48B7-A537-D64C06E71177}</it>
  </guids>
  </tArg>
  </GetBpmStepOperations>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetBpmStepOperationsResult 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">
<steps xmlns="">
<it>
  <guid>{AAC9F54F-EBED-4106-8C77-9356E14A5241}</guid>
  <ops />
  <bindParams />
  </it>
<it>
  <guid>{7D079FAF-FC27-48B7-A537-D64C06E71177}</guid>
<ops>
  <it>1</it>
  <it>8</it>
  </ops>
<bindParams>
<it>
  <paramId>OBJ117929_0</paramId>
  <dimKey>117929</dimKey>
  <mnk>CDIKMKCKEHJCGOAELMMPKEGKAJIPBMFELKNPPPKHHFAHIIHI!M!S!SFKIIMADKEHJCGOAEALFKHOEPPHGOLPFECLMDPPAMPCECCEGH</mnk>
  </it>
  </bindParams>
  </it>
  </steps>
  </GetBpmStepOperationsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetBpmStepOperations" :
{
"tBpmProcess" :
{
"id" : "CDIKMKCKEHJCGOAELMMPKEGKAJIPBMFELKNPPPKHHFAHIIHI!M!S!BPFGPGKNCKEHJCGOAEHJDEHIPJFHBPODGEKJCMFANHBFPHKIDC"
},
"tArg" :
{
"instId" : "51021",
"guids" :
{
"it" :
[
"{AAC9F54F-EBED-4106-8C77-9356E14A5241}",
"{7D079FAF-FC27-48B7-A537-D64C06E71177}"
]
}
}
}
}

JSON response:

{
"GetBpmStepOperationsResult" :
{
"steps" :
{
"it" :
[
{
"guid" : "{AAC9F54F-EBED-4106-8C77-9356E14A5241}",
"ops" : "",
"bindParams" : ""
},
{
"guid" : "{7D079FAF-FC27-48B7-A537-D64C06E71177}",
"ops" :
{
"it" :
[
"1",
"8"
]
},
"bindParams" :
{
"it" :
{
"paramId" : "OBJ117929_0",
"dimKey" : "117929",
"mnk" : "CDIKMKCKEHJCGOAELMMPKEGKAJIPBMFELKNPPPKHHFAHIIHI!M!S!SFKIIMADKEHJCGOAEALFKHOEPPHGOLPFECLMDPPAMPCECCEGH"
}
}
}
]
}
}
}
public static BpmStepOperationStatusResult GetBpmStepOperations(string moniker, int instanceKey, string[] stepGUIDs)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetBpmStepOperations()
{
tBpmProcess = new BpmProcessId() { id = moniker },
tArg = new GetBpmStepOperationsArg()
{
instId = instanceKey,
guids = stepGUIDs
}
};
// Get a list of operations available for steps of executed process instance
var result = somClient.GetBpmStepOperations(tGet);
return result;
}

See also:

Working with Processes