Create new rule set for initialization and validation

To create a new rule set for initialization, follow the steps below:

  1. From the System Navigator, click Tailoring > Process Designer > Rule Sets.
  2. Type the values as follow:

    Field Value
    ID pbm.alm.int.init
    Available as action False
    Name Initialize for ALM integration in the Problem Record
    Table name rootcause
    Micro Focus Proprietary  
  3. Click New and Save.
  4. Click Add Rule.
  5. In the Select Rule Type page, click Run JavaScript.
  6. In the Run JavaScript page, type the values as follow:

    Field Value
    Rule Description Run Javascript for initializing Integration type and project in the Problem Record
    Statement

    vars['$qcint.type.readonly'] = 2;

    vars['$qcint.project.readonly'] = 2;

    var _null=system.functions._null;

    var file = vars.$L_file;

    if(file["qcintegration.type"] !=0 && !_null(file["qcintegration.type"])) {

    vars['$qcint.type.readonly'] = 1

    }

    if(file["qcintegration.type"] !=0 && !_null(file["qcintegration.project"])) {

    vars['$qcint.project.readonly'] = 1

    }

  7. Click OK.
  8. Click Save and Exit.

To create a new rule set for validation, follow the steps below:

  1. From the System Navigator, click Tailoring > Process Designer > Rule Sets.
  2. Type the values as follow:

    Field Value
    ID pbm.alm.int.validation
    Available as action False
    Name Validation for ALM integration in the Problem Record
    Table name rootcause
    Micro Focus Proprietary  
  3. Click New and Save.
  4. Click Add Rule.
  5. In the Select Rule Type page, click Set Mandatory Fields.

  6. Refer to step 6 to step 13 as described in Create new rule set for initialization and validation.