BpmCubeSegmentInfo GetBpmSegmentInfo(BpmProcessId tBpmProcess, GetBpmCubeSegmentInfoArg tArg)
tBpmProcess. Moniker of opened process.
tArg. Operation execution parameters.
The GetBpmSegmentInfo operation gets 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 information about step and data segment, for which the operation is executed. The moniker can be obtained after executing the OpenBpmProcess operation. Step information can be obtained using the GetBpmWorkspace operation. Information about available segments is returned by the GetBpmSegmentsForSteps operation.
The operation results in the obtained data segment settings.
Below is the example of getting settings of the data segment used in a step. The request contains moniker of opened process, data entry step GUID, cube and segment keys. The response contains settings determined for a process step segment.
{
"GetBpmSegmentInfo" :
{
"tBpmProcess" :
{
"id" : "MMCCFMODHHDDGOAEJNHEBIDDFKDDHAGEOJJCCJMGOADNDDCJ!M!S!BPFLPMKNODHHDDGOAEAPBGMNOKNLEGJMHEHJPIBDFCLCKGHBEP"
},
"tArg" :
{
"stpGuid" : "{42F4DDBC-DC40-46E3-83F6-202E13E4EF37}",
"cubeKey" : "343811",
"key" : "343832"
}
}
}
{
"GetBpmSegmentInfoResult" :
{
"isDynamic" : "1",
"linked" : "1",
"segDims" :
{
"it" :
[
{
"dimKey" : "343812",
"isEnabled" : "0",
"bindType" : "Unknown",
"name" : "Facts"
},
{
"dimKey" : "343809",
"isEnabled" : "0",
"bindType" : "Unknown",
"name" : "Calendar"
},
{
"dimKey" : "343805",
"isEnabled" : "0",
"bindType" : "Unknown",
"name" : "Sectors dictionary"
},
{
"dimKey" : "343807",
"isEnabled" : "1",
"bindType" : "Unknown",
"name" : "Companies dictionary",
"mnk" : "MMCCFMODHHDDGOAEJNHEBIDDFKDDHAGEOJJCCJMGOADNDDCJ!M!S!SCDNJCBPDHHDDGOAEIPGBOBIEMGOMOPBECKCBBGOLNDJDGBNF"
}
]
}
}
}
public static BpmCubeSegmentInfo GetBpmSegmentInfo(string moniker, string stepGUID, uint cube, uint segment)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetBpmSegmentInfo()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker },
tArg = new GetBpmCubeSegmentInfoArg()
{
stpGuid = stepGUID,
cubeKey = cube,
key = segment
}
};
// Get data segment settings
var result = somClient.GetBpmSegmentInfo(tGet);
return result;
}
See also: