Enter values and variables in patterns

There are several ways to enter values in Pattern Designer.

Table 1. Useful shortcuts in Pattern Designer
To Do this Example
Enter constant values, a string Enclose the value in quote marks ("). Enter the path with quote marks (") at the beginning and at the end of the string.

Use quote marks for strings.
Enter a value that can change, a variable Start the variable name with the dollar sign ($). Enter the variable name beginning with the dollar sign ($).

Use the dollar sign for variables.
Enter a value that can change from a variable that contains several variables Enter the variable name in the following format:

$<container_variable>.<variable>

Enter the dollar sign ($), followed by process for the container variable name, period (.), and then pid for the name of the string variable.

Use the right format for variable strings making up a compound variable.
Enter a value from the specific field in a table Enter the variable in the following format:

$tabular_variable[row number].column_name

To use the value from the second row in the instanceID column from the IfTable variable, enter $IfTable[2].InstanceID.


Example of a tabular variable
Enter values from a specific column in a table sequentially, starting from the current row Enter the variable in this format:

$tabular_variable[].column_name

To use the value from the current row in the instanceID column from the IfTable variable, enter $IfTable[].InstanceID.

Example of entering a value from a tabular variable
Enter values from a specific column in a table sequentially, starting from the first row Enter the variable in this format:

$tabular_variable[*].column_name

To use the value from the first row in the instanceID column from the IfTable variable, enter $IfTable[*].InstanceID.

Example of entering a value from a tabular variable
Note: When used in Match a condition with the Is Not Empty operator, the system extracts values from fields, even if some fields are empty.
Copy a value or a variable into a field Select the variable or the value you want to copy from the CI Attribute pane and drag it into the target field. Drag the company variable from the CI Attributes pane into the Values field.
Drag and drop.
Enter a variable using auto-complete
  1. Type the dollar character ($) and the first letters of the variable name.
  2. Select the relevant value from the list showing all currently available values that match the characters you entered.
If only one choice fits, that value is automatically entered into the field.
Variables have a $ prefix. Typing $P in a field displays a list of possible values beginning with "P".

Using auto-complete for entering values and variables
Specify complex (concatenated) values in fields Enter a value, then add a plus sign (+), and then enter another value.
Note: You can drag values and variables to create complex values.
To specify the path, use the install_directory variable and extract of the actual path connected by a plus sign (+).

Use a plus sign for complex values
Use the eval() function to evaluate a string in the field
  1. Type EVAL( and click the edit icon next to the field.
  2. In the EVAL Script Editor window, ensure that the JavaScript mode is on or click Other for other types of scripts like Groovy.
  3. Type the script in the editor pane.
  4. If necessary, use the Search, Replace, and Format buttons to modify the script. Linting and highlighting is available for JavaScript.
  5. Click Apply.
To use the eval() function for JavaScript serving as a parameter value, enter the script in the EVAL Script Editor window.

Using the eval() function to define values.