GetBpmCondition

Syntax

GetBpmConditionResult GetBpmCondition(BpmProcessId tBpmProcess, GetBpmConditionArg tArg)

Parameters

tBpmProcess. Moniker of opened process.

tArg. Operation execution parameters.

Description

The GetBpmCondition operation gets conditions of executing a group of steps.

Comments

To execute the operation, in the tBpmProcess field specify moniker of opened process, and in the tArg.guid field specify identifier of a group of steps. The moniker can be obtained after executing the OpenBpmProcess operation. The unique identifier can be obtained in execution results of the GetBpmWorkspace operation.

The operation results in the obtained conditions specified for a group of steps.

Example

Below is the example of getting conditions of executing a group of steps. The request contains moniker of opened process and unique identifier of a group of steps. The response contains the obtained conditions.

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">
<GetBpmCondition xmlns="http://www.fsight.ru/PP.SOM.Som">
<tBpmProcess xmlns="">
  <id>LHJPLDHKBDMCGOAECKIHKFBJAFLIFNBENKKPBNHANLGEFOAI!M!S!BPNKIIPFHKBDMCGOAEBOICMMCALKJJNNMEEJMFJPFGIOLFHGGH</id>
  </tBpmProcess>
<tArg xmlns="">
  <guid>{CE8E3E58-1315-4EBB-9634-1AA54BEAAC9D}</guid>
  </tArg>
  </GetBpmCondition>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetBpmConditionResult 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">
<cond xmlns="">
<it>
  <type>RelationSetNumber</type>
  <exprRel>Or</exprRel>
<expr>
<paramInfo>
  <paramId>OBJ117622_0</paramId>
  <paramKey>117622</paramKey>
  </paramInfo>
  <exprType>RelationSetNumber</exprType>
  <operation>NotEqual</operation>
<rDimS>
  <mnk>LHJPLDHKBDMCGOAECKIHKFBJAFLIFNBENKKPBNHANLGEFOAI!M!S!SJFMPLGHKBDMCGOAEMHHILAIEPFGMEDDEMIBDHFMHFAJLFMLG</mnk>
  </rDimS>
  </expr>
  </it>
  </cond>
  <isDefault xmlns="">0</isDefault>
  </GetBpmConditionResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetBpmCondition" :
{
"tBpmProcess" :
{
"id" : "LHJPLDHKBDMCGOAECKIHKFBJAFLIFNBENKKPBNHANLGEFOAI!M!S!BPNKIIPFHKBDMCGOAEBOICMMCALKJJNNMEEJMFJPFGIOLFHGGH"
},
"tArg" :
{
"guid" : "{CE8E3E58-1315-4EBB-9634-1AA54BEAAC9D}"
}
}
}

JSON response:

{
"GetBpmConditionResult" :
{
"cond" :
{
"it" :
{
"type" : "RelationSetNumber",
"exprRel" : "Or",
"expr" :
{
"paramInfo" :
{
"paramId" : "OBJ117622_0",
"paramKey" : "117622"
},
"exprType" : "RelationSetNumber",
"operation" : "NotEqual",
"rDimS" :
{
"mnk" : "LHJPLDHKBDMCGOAECKIHKFBJAFLIFNBENKKPBNHANLGEFOAI!M!S!SJFMPLGHKBDMCGOAEMHHILAIEPFGMEDDEMIBDHFMHFAJLFMLG"
}
}
}
},
"isDefault" : "0"
}
}
public static GetBpmConditionResult GetBpmCondition(string moniker, string stepGUID)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetBpmCondition()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker },
tArg = new GetBpmConditionArg()
{
guid = stepGUID
}
};
// Get condition of executing a group of steps
var result = somClient.GetBpmCondition(tGet);
return result;
}

See also:

Working with Processes