GetBpmConditionResult GetBpmCondition(BpmProcessId tBpmProcess, GetBpmConditionArg tArg)
tBpmProcess. Moniker of opened process.
tArg. Operation execution parameters.
The GetBpmCondition operation gets conditions of executing a group of steps.
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.
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.
{
"GetBpmCondition" :
{
"tBpmProcess" :
{
"id" : "LHJPLDHKBDMCGOAECKIHKFBJAFLIFNBENKKPBNHANLGEFOAI!M!S!BPNKIIPFHKBDMCGOAEBOICMMCALKJJNNMEEJMFJPFGIOLFHGGH"
},
"tArg" :
{
"guid" : "{CE8E3E58-1315-4EBB-9634-1AA54BEAAC9D}"
}
}
}
{
"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: