Getting Settings for Starting Process

Below is the example of using the GetBpmProcessStartInfo operation for getting the settings, with which a process can be started. The request contains process moniker. 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="">
  <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:50.921</minDeadline>
<procParams xmlns="">
<bpmProcessParams>
<it>
  <dictMnk>NPHEOHFBGPCDGOAEFHEOFIIANCEEIDGECLDJGGBNCPACAJOB!M!S!SLJAHKOFBGPCDGOAEHBDHIIIEPMDDMENEHIFIEMEBEFNGJADH</dictMnk>
  <dictName>Branches</dictName>
  <splitParam>0</splitParam>
  </it>
  </bpmProcessParams>
  </procParams>
  </GetBpmProcessStartInfoResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetBpmProcessStartInfo" :
{
"tArg" :
{
"stpGuid" : "",
"id" : "NPHEOHFBGPCDGOAEFHEOFIIANCEEIDGECLDJGGBNCPACAJOB!M!S!BPJKLPJNFBGPCDGOAEEGOFJMAOEDKBLKDEALEJKADCFIEOHNAC"
}
}
}

JSON response:

{
"GetBpmProcessStartInfoResult" :
{
"minDeadline" : "2024-06-22T16:33:50.921",
"procParams" :
{
"bpmProcessParams" :
{
"it" :
{
"dictMnk" : "NPHEOHFBGPCDGOAEFHEOFIIANCEEIDGECLDJGGBNCPACAJOB!M!S!SLJAHKOFBGPCDGOAEHBDHIIIEPMDDMENEHIFIEMEBEFNGJADH",
"dictName" : "Branches",
"splitParam" : "0"
}
}
}
}
}
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