GetLinkActiveProcess

Syntax

Result GetLinkActiveProcess(OdId reportId)

Parameters

reportId. Moniker of object that is a regular report.

Description

The GetLinkActiveProcess operation checks if regular report and steps of running processes are linked.

Comments

The operation checks if regular report is used in the Approval or data entry step in running process instances. To execute the operation, in the reportId field specify moniker of the repository object that is a regular report. The moniker can be obtained on executing the GetObjects operation.

The operation results in the logical true if regular report is used in steps of running process instances, and false if regular report is not used.

Example

Below is the example of checking if regular report and steps of running process instances are linked. The request contains moniker of the object that is a regular report. The response contains whether running process instances use regular report.

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">
<GetLinkActiveProcess xmlns="http://www.fsight.ru/PP.SOM.Som">
<reportId xmlns="">
  <id>MGCJLAODBFHGGOAEAHDCLNHLBGOFKNPEEJLMPPGHNCPGLIJB!M!110610</id>
  </reportId>
  </GetLinkActiveProcess>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"GetLinkActiveProcess" :
{
"reportId" :
{
"id" : "MGCJLAODBFHGGOAEAHDCLNHLBGOFKNPEEJLMPPGHNCPGLIJB!M!110610"
}
}
}

JSON response:

{
"GetLinkActiveProcessResult" : "1"
}
public static bool GetLinkActiveProcess(string moniker, string reportKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetLinkActiveProcess()
{
reportId = new OdId() { id = moniker + '!' + reportKey }
};
// Check if regular report and steps of running processes are linked
var result = somClient.GetLinkActiveProcess(tGet);
return result;
}

See also:

Working with Processes