String-type Variables

String-type variables can be used to populate rule properties with character data that does not appear in local data files or incoming documents.

This process takes place in a Ruleset editor, in the Variables section.
  1. Make sure nothing in Variables is selected. If something is selected, Ctrl+click on it to deselect it.
  2. Click the Add Variable button to produce the Create a New Variable window.
    1. In the Name field, type what you'd like to call the variable.
    2. Select String from the Type drop-down.
    3. If you want to hard-code a value, type it in the Value field.
    4. If you wish to set an empty string (removing some characters is a common use case), then select the Initialize as empty string checkbox.
    5. (Version 1 Rulesets only) If you want to limit how long the data string can be, select the Set String Constraints check box. Type the maximum length in the Length field.
  3. Click OK to complete this task.
Use the new variable as you would any other child node from the source or target Schema.