SetBpmProcAdministration

Syntax

SetBpmProcAdministrationResult SetBpmProcAdministration(OdId tObject, BpmProcAdministrationPageArg tPage, BpmProcAdministrationInfo tArg)

Parameters

tObject. Business Processes component moniker.

tPage. Operation execution parameters.

tArg. Updated administration settings that should be applied.

Description

The SetBpmProcAdministration operation changes business process administration settings.

Comments

This operation should be executed for the Business Processes component (the identifier: BPM_COMPONENT). The operation should be executed by the user who is a repository database (schema) owner or is included in the Administrators group.

To execute the operation, in the tObject field specify moniker of the Business Processes component, and in the tPage field specify the section with administration settings that should be obtained. The moniker can be obtained on executing the GetObjects operation.

The operation results in the obtained administration settings.

Example

Below is the example of changing process scheduler settings. The request contains moniker of the Business Process component and server execution settings to be applied. The response contains whether new settings are successfully applied.

The C# example uses the FindObjectById function, which code is given in the Getting Object Description by Its Identifier example.

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">
<SetBpmProcAdministration xmlns="http://www.fsight.ru/PP.SOM.Som">
<tObject xmlns="">
  <id>BPAEMDDLNENAGOAEACLJJOFEKIJHADNEIIMIFGGIJKIJCJOK!M!143520</id>
  </tObject>
<tPage xmlns="">
  <page>Sch</page>
  </tPage>
<tArg xmlns="">
<schInf>
  <clEx>false</clEx>
<biInf>
  <servEx>false</servEx>
  </biInf>
<srvExecInf>
  <taskCnt>5</taskCnt>
  <taskIntrv>5</taskIntrv>
  <deadF>true</deadF>
  <deadInterv>15</deadInterv>
  </srvExecInf>
  </schInf>
  </tArg>
  </SetBpmProcAdministration>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<SetBpmProcAdministrationResult 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">
  <res xmlns="">1</res>
  </SetBpmProcAdministrationResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"SetBpmProcAdministration" :
{
"tObject" :
{
"id" : "BPAEMDDLNENAGOAEACLJJOFEKIJHADNEIIMIFGGIJKIJCJOK!M!143520"
},
"tPage" :
{
"page" : "Sch"
},
"tArg" :
{
"schInf" :
{
"clEx" : "false",
"biInf" :
{
"servEx" : "false"
},
"srvExecInf" :
{
"taskCnt" : "5",
"taskIntrv" : "5",
"deadF" : "true",
"deadInterv" : "15"
}
}
}
}
}

JSON response:

{
"SetBpmProcAdministrationResult" :
{
"res" : "1"
}
}
public static SetBpmProcAdministrationResult SetBpmProcAdministration(MbId mb)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetBpmProcAdministration()
{
tObject = new OdId() { id = mb.id + "!" + FindObjectById(mb, "BPM_COMPONENT").k },
tPage = new BpmProcAdministrationPageArg()
{
page = BpmProcAdministrationInfoPage.Sch
},
tArg = new BpmProcAdministrationInfo()
{
schInf = new BpmSchedulerInfo()
{
clEx = false,
srvExecInf = new BpmSchedulerServExecInfo()
{
taskCnt = 5,
taskIntrv = 5,
deadF = true,
deadInterv = 15
},
biInf = new BpmSchedulerBiServiceInfo()
}
}
};
// Change scheduler settings
var result = somClient.SetBpmProcAdministration(tSet);
return result;
}

See also:

Working with Processes