BpmSetSegmentsInfoResult SetBpmSegmentsInfo(BpmProcessId tBpmProcess, SetBpmCubeSegmentsInfoArg tArg)
tBpmProcess. Moniker of opened process.
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, 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 information about successfully changed data segment settings.
Below is the example of changing segment settings in process step. The request contains moniker of opened process, data entry step GUID and segment settings. The response contains whether settings were changed successfully.
{
"SetBpmSegmentsInfo" :
{
"tBpmProcess" :
{
"id" : "MMCCFMODHHDDGOAEJNHEBIDDFKDDHAGEOJJCCJMGOADNDDCJ!M!S!BPFLPMKNODHHDDGOAEAPBGMNOKNLEGJMHEHJPIBDFCLCKGHBEP"
},
"tArg" :
{
"stpGuid" : "{42F4DDBC-DC40-46E3-83F6-202E13E4EF37}",
"segsInfo" :
{
"it" :
[
{
"isDynamic" : "true",
"linked" : "true",
"key" : "343832",
"cubeKey" : "343811",
"name" : "Access by sectors"
},
{
"isDynamic" : "false",
"linked" : "true",
"key" : "343834",
"cubeKey" : "343811",
"name" : "Access by companies"
}
]
}
}
}
}
{
"SetBpmSegmentsInfoResult" :
{
"result" : "1"
}
}
public static BpmSetSegmentsInfoResult 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: