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 chm.alm.int.init
    Available as action  
    Name Initialize for ALM integration in the Change Record
    Table name cm3r
    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 Change 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 chm.alm.int.validation
    Available as action  
    Name Validation for ALM integration in the Change Record
    Table name cm3r
    Micro Focus Proprietary  
  3. Click New and Save.
  4. Click Add Rule.
  5. In the Select Rule Type page, click Set Mandatory Fields.
  6. Click Edit. The Condition Editor opens.
  7. Add conditions as illustrated in the following screenshot:

  8. Click Done to exit the Condition Editor.
  9. Set value "Qcintegration Project" to "Field Name".

  10. Click OK to exit the Set Mandatory Fields page.
  11. Click Save and Exit.