bool SetBpmSegmentsInfo(BpmProcessId tBpmProcess, SetBpmCubeSegmentsInfoArg tArg)
tBpmProcess. Moniker of opened process instance.
tArg. Operation execution parameters.
The SetBpmSegmentsInfo operation changes data segment settings for process step.
The operation is relevant for the Data Entry or Approval steps.
To execute the operation, in the tBpmProcess field specify moniker of opened process instance, and in the tArg field specify step and data segment settings to be applied. The moniker can be obtained after executing the OpenBpmProcess operation.
Information about step and segments can be obtained using the GetBpmSegmentsForSteps operation.
The operation results in the logical True if segment settings were changed successfully.
Below is the example of changing segment settings in process step. The request contains moniker of opened process step, data entry step GUID and segment settings. The response contains whether settings were changed successfully.
{
"SetBpmSegmentsInfo" :
{
"tBpmProcess" :
{
"id" : "FEMECGGABFLBGOAEJBJKCPGGFAHPPKEEIKOJCGNBAGIOIMIC!M!S!BPPGKHJHGABFLBGOAENCJJPOBAMGBMALIEDKIOMOCIBDCANJEA"
},
"tArg" :
{
"stpGuid" : "{42F4DDBC-DC40-46E3-83F6-202E13E4EF37}",
"segsInfo" :
{
"it" :
[
{
"isDynamic" : "true",
"linked" : "true",
"segKey" : "343832",
"cubeKey" : "343811"
},
{
"isDynamic" : "false",
"linked" : "true",
"segKey" : "343834",
"cubeKey" : "343811"
}
]
}
}
}
}
{
"SetBpmSegmentsInfoResult" : "1"
}
public static bool SetBpmSegmentsInfo(string moniker, string stepGUID, BpmCubeSegmentInfo[] newSegsInfo)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetBpmSegmentsInfo()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker },
tArg = new SetBpmCubeSegmentsInfoArg()
{
stpGuid = stepGUID,
segsInfo = newSegsInfo
}
};
// Change data segment settings
var result = somClient.SetBpmSegmentsInfo(tSet);
return result;
}
See also: