Result GetLinkActiveProcess(OdId reportId)
reportId. Moniker of object that is a regular report.
The GetLinkActiveProcess operation checks if regular report and steps of running processes are linked.
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.
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.
{
"GetLinkActiveProcess" :
{
"reportId" :
{
"id" : "MGCJLAODBFHGGOAEAHDCLNHLBGOFKNPEEJLMPPGHNCPGLIJB!M!110610"
}
}
}
{
"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: