SetBpmConditionResult SetBpmCondition(BpmProcessId tBpmProcess, SetBpmConditionArg tArg)
tBpmProcess. Moniker of opened process.
tArg. Operation execution parameters.
The SetBpmCondition operation changes conditions of executing a group of steps.
To execute the operation, in the tBpmProcess field specify moniker of opened process and in the tArg field specify identifier of a group of steps and their execution conditions. 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 result determines whether conditions are changed successfully.
Below is the example of changing conditions of executing group of steps. The request contains moniker of opened process, unique identifier of a group of steps, and new execution conditions. The response contains whether execution condition settings were changed successfully.
{
"SetBpmCondition" :
{
"tBpmProcess" :
{
"id" : "LHJPLDHKBDMCGOAECKIHKFBJAFLIFNBENKKPBNHANLGEFOAI!M!S!BPNKIIPFHKBDMCGOAEBOICMMCALKJJNNMEEJMFJPFGIOLFHGGH"
},
"tArg" :
{
"cond" :
{
"it" :
{
"type" : "RelationSetNumber",
"exprRel" : "Or",
"expr" :
{
"paramInfo" :
{
"paramId" : "OBJ117622_0",
"paramKey" : "117622"
},
"exprType" : "RelationSetNumber",
"operation" : "NotEqual",
"rDimS" :
{
"mnk" : "LHJPLDHKBDMCGOAECKIHKFBJAFLIFNBENKKPBNHANLGEFOAI!M!S!SJFMPLGHKBDMCGOAEMHHILAIEPFGMEDDEMIBDHFMHFAJLFMLG"
}
}
}
},
"isDefault" : "false",
"guid" : "{CE8E3E58-1315-4EBB-9634-1AA54BEAAC9D}"
}
}
}
{
"SetBpmConditionResult" :
{
"res" : "1"
}
}
public static SetBpmConditionResult SetBpmCondition(string moniker, string stepGUID, BpmCondition[] newConds)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetBpmCondition()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker },
tArg = new SetBpmConditionArg()
{
guid = stepGUID,
isDefault = false,
cond = newConds
}
};
// Change condition of executing a group of steps
var result = somClient.SetBpmCondition(tSet);
return result;
}
See also: