Show contents 

Web Service > Web Service Operations > Working with Processes > GetStartEventSettings

GetStartEventSettings

Syntax

BpmStartEventInfo GetStartEventSettings(BpmProcessId tBpmProcess, GetStartEventSettingsArg tArg)

Parameters

tBpmProcess. Moniker of opened process.

tArg. Operation execution parameters.

Description

The GetStartEventSettings operation gets start process event settings.

Comments

To execute the operation, in the tBpmProcess field specify moniker of opened process, and in the tArg.optType field specify type of obtained settings. The moniker can be obtained after executing the OpenBpmProcess operation.

The operation results in the obtained settings.

Example

Below is the example of getting process start event settings. The request contains moniker of opened process. 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">
<GetStartEventSettings xmlns="http://www.fsight.ru/PP.SOM.Som">
<tBpmProcess xmlns="">
  <id>DICNGBKNAJKEGOAEPFPJHGAAEMHJPFIEHLGHCIACBBLCJJKA!M!S!BPAHEICDKNAJKEGOAECMEPDJAJDGAPEBCELJDMNJMLEPENHPHE</id>
  </tBpmProcess>
<tArg xmlns="">
  <optType>0</optType>
  </tArg>
  </GetStartEventSettings>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetStartEventSettingsResult 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">
  <optType xmlns="">0</optType>
<per xmlns="">
  <type>Weekly</type>
<wPer>
  <evWs>1</evWs>
<dsOfW>
  <it>1</it>
  </dsOfW>
  </wPer>
  </per>
  <rep xmlns="">4</rep>
  <id xmlns="">START_TIMER_EVENT</id>
  <stDT xmlns="">2024-12-26T07:00:00.000Z</stDT>
  </GetStartEventSettingsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetStartEventSettings" :
{
"tBpmProcess" :
{
"id" : "DICNGBKNAJKEGOAEPFPJHGAAEMHJPFIEHLGHCIACBBLCJJKA!M!S!BPAHEICDKNAJKEGOAECMEPDJAJDGAPEBCELJDMNJMLEPENHPHE"
},
"tArg" :
{
"optType" : "0"
}
}
}

JSON response:

{
"GetStartEventSettingsResult" :
{
"optType" : "0",
"per" :
{
"type" : "Weekly",
"wPer" :
{
"evWs" : "1",
"dsOfW" :
{
"it" : "1"
}
}
},
"rep" : "4",
"id" : "START_TIMER_EVENT",
"stDT" : "2024-12-26T07:00:00.000Z"
}
}
public static BpmStartEventInfo GetStartEventSettings(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetStartEventSettings()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker },
tArg = new GetStartEventSettingsArg()
{
optType = 0
}
};
// Get start event settings
var result = somClient.GetStartEventSettings(tGet);
return result;
}

See also:

Working with Processes