IBProcess.Params

Syntax

Params: IBProcessParams;

Description

The Params property determines the collection of process parameters.

Example

Executing the example requires that the repository contains a process with the PROCESS identifier and a dictionary with the D_SCENARIO identifier.

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;
    MObj: IMetabaseObjectDescriptor;
    Process: IBProcess;
    Params: IBProcessParams;
    Param: IBProcessParam;
Begin
    Mb := MetabaseClass.Active;
    MObj := Mb.ItemById("PROCESS");
    // Get process structure
    Process := BProcessCollection.EditByKey(MObj.Key);
    Params := Process.Params;
    // Create parameter
    Param := Params.Add("Execution scenario", Mb.ItemById("D_SCENARIO"));
    Param.CheckElementsRights := True;
    // Save changes
    Process.Save;
End Sub UserProc;

After executing the example a new parameter is created in the process that is linked with the specified dictionary.

See also:

IBProcess