Getting Settings for Starting Subprocess

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetBpmProcessStartInfo xmlns="http://www.fsight.ru/PP.SOM.Som">
<tArg xmlns="">
  <parentInstId>97976</parentInstId>
  <stpGuid>{17AE01A0-8BDA-4B2C-8BF3-B48A6A411EE1}</stpGuid>
  <id>NPHEOHFBGPCDGOAEFHEOFIIANCEEIDGECLDJGGBNCPACAJOB!M!S!BPJKLPJNFBGPCDGOAEEGOFJMAOEDKBLKDEALEJKADCFIEOHNAC</id>
  </tArg>
  </GetBpmProcessStartInfo>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetBpmProcessStartInfoResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <minDeadline xmlns="">2024-06-22T16:33:56.499</minDeadline>
<procParams xmlns="">
<bpmProcessParams>
<it>
  <dictMnk>NPHEOHFBGPCDGOAEFHEOFIIANCEEIDGECLDJGGBNCPACAJOB!M!S!SNAHIHAJBGPCDGOAEMLEJFNBBIILPBCBENIBBAOAECOICICID</dictMnk>
  <selCount>2</selCount>
  <dictName>Branches</dictName>
  <splitParam>1</splitParam>
  </it>
  </bpmProcessParams>
  </procParams>
  </GetBpmProcessStartInfoResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetBpmProcessStartInfo" :
{
"tArg" :
{
"parentInstId" : "97976",
"stpGuid" : "{17AE01A0-8BDA-4B2C-8BF3-B48A6A411EE1}",
"id" : "NPHEOHFBGPCDGOAEFHEOFIIANCEEIDGECLDJGGBNCPACAJOB!M!S!BPJKLPJNFBGPCDGOAEEGOFJMAOEDKBLKDEALEJKADCFIEOHNAC"
}
}
}

JSON response:

{
"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:

GetBpmProcessStartInfo: Operation