Below is the example of using the GetBpmProcessStartInfo operation for getting the settings, with which a subprocess can be started. The request contains moniker of the process, identifier of running process instance, and unique identifier of the step corresponding to subprocess. The response contains the obtained settings.
{
"GetBpmProcessStartInfo" :
{
"tArg" :
{
"parentInstId" : "97976",
"stpGuid" : "{17AE01A0-8BDA-4B2C-8BF3-B48A6A411EE1}",
"id" : "NPHEOHFBGPCDGOAEFHEOFIIANCEEIDGECLDJGGBNCPACAJOB!M!S!BPJKLPJNFBGPCDGOAEEGOFJMAOEDKBLKDEALEJKADCFIEOHNAC"
}
}
}
{
"GetBpmProcessStartInfoResult" :
{
"minDeadline" : "2024-06-22T16:33:56.499",
"procParams" :
{
"bpmProcessParams" :
{
"it" :
{
"dictMnk" : "NPHEOHFBGPCDGOAEFHEOFIIANCEEIDGECLDJGGBNCPACAJOB!M!S!SNAHIHAJBGPCDGOAEMLEJFNBBIILPBCBENIBBAOAECOICICID",
"selCount" : "2",
"dictName" : "Branches",
"splitParam" : "1"
}
}
}
}
}
public static GetBpmStartInfoResult GetBpmProcessStartInfo(string moniker, uint? instId = null, string subprocGUID = "")
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetBpmProcessStartInfo()
{
tArg = new GetBpmStartInfoArg()
{
id = moniker,
parentInstId = instId,
stpGuid = subprocGUID
}
};
// Get settings for starting process/subprocess
var result = somClient.GetBpmProcessStartInfo(tGet);
return result;
}
See also: