IBPReportHelper.CheckReportLinkedToProcessInstances

Syntax

CheckReportLinkedToProcessInstances(ReportKey: Integer; Metabase: IMetabase): Boolean;

Parameters

ReportKey. Regular report key.

Metabase. Repository, in which processes are started.

Description

The CheckReportLinkedToProcessInstances method checks if regular report is linked with steps of running process instances.

Comments

The method checks if regular report is used in the Approval or Data Entry step in running process stages. The method returns True if regular report is used in steps of running process instances, and False if regular report is not used.

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier. The processes can also be created, in which this regular report is used. Process instances can be started.

Add links to the BPM, Metabase system assemblies. Add a link to the assembly that is required to work with processes.

Sub UserProc;
Var
    Mb: IMetabase;
    Helper: IBPReportHelper;
Begin
    Mb := MetabaseClass.Active;
    Helper := New BPReportHelper.Create(Mb);
    Debug.WriteLine(Helper.CheckReportLinkedToProcessInstances(Mb.ItemById("REPORT").Key, Mb));
End Sub UserProc;

After executing the example the development environment console displays whether the specified regular report is used in steps of running process instances.

See also:

IBPReportHelper