Following are examples of typical expressions you could use to create recognition rules.
Expressions |
Description |
Result Type |
"HostField1 like '*VM/ESA*' " |
Checks if the text inside HostField1 contains the string "VM/ESA". |
Boolean |
"HostField1 like 'A*B*C' " |
Checks if the text inside HostField1 begins with A, contains B, and ends with C. |
Boolean |
"(HostField1 like '*ABC*') and (HostField2 like '*XYZ*')" |
Evaluates the sub-expressions and returns true if both are true; otherwise returns false. |
Boolean |
"(HostField1 < 4) and (HostField3 >= 9)" |
Arithmetic comparison. |
Boolean |
"1 + 4" |
Arithmetic. |
Integer |
"{1,2,3,4}" |
An array of objects with the items 1, 2, 3, and 4. |
Object[ ] |
HostField1.EndCol('Line=') + 1 |
Returns the column number of the '=' char in the first occurrence of the string "Line=" in HostField1, plus one. |
Integer |
HostField1.StartCol('' ,1,HostField1.EndCol('Line=')) |
Returns the column number of the first occurrence of a space after the string, "Line=" in HostField1. |
Integer |
STARTROW('list') + 1 |
Returns the row number of the first row to contain the string "list", plus one. |
Integer |
STRINGAT(10,10,5)=='TEST' |
Tests to determine if the string at row 10, column 10, with a length of 5 is equal to the string "TEST". |
Boolean |
REFLECT(java.lang.Integer.parseInt,Screen<fieldname or screen>.STRINGAT(10,10,5)) |
Uses the static Java method parseInt() to parse out the integer in the form of a string at row 10, column 10, with a length of 5. |
Integer. REFLECT expressions that will be used for Bean-based task outputs must return a String data type. |
REFLECT(com.mycompany.mypackage.MyClass.MyRule,Screen2.STRINGAT(10,10,5)) |
An abstract example of how to use a custom function. |
Not applicable |