How to Test a Unit Group Normalizer

As with unit templates, you can use the Transform Validator tool to test group normalizers that you create for units. Use this tool to make sure that the logic you specify allows and filters values appropriately before referencing the normalizer in a unit definition.

To test a unit group normalizer in the Transform Validator:

  1. In Windows Explorer, navigate to the \vocera\vcts\tools\TransformValidator\bin.
  2. Run the TransformValidator.bat file.

    The Transform Validator appears.

  3. Enter data to use as input to the normalizer in the Template and Input String fields and make sure that the Template Variables field shows expected and appropriate values.
  4. Copy the code for your normalizer from your text editor and paste it into the Normalizer section of the Transform Validator.

    The Normalizer Format field appears highlighted in orange due to minor discrepancies between the <input/> variables used in the actual normalizer and the variables expected by the Transform Validator.

  5. Edit the variables in the Normalizer field of the Transform Validator as follows:
    • In the top-level node, replace the special Group variable with $input.

    • In the other nodes, prefix the <input/> variables with a $ character.

    When you are finished, the Normalizer field should look similar to the following:

  6. Confirm that the Normalizer Variables field shows the assigned values you expect and the Normalizer Format field displays the expected normalized location or role.
  7. If necessary, edit the code you provided in the Normalizer field until your normalizer provides the expected output.
  8. Copy and paste any changes you made in the Normalizer field of the Transform Validator into the normalizer in your text editor and save it.