Expression Builder enhancements for certain rule types
Several enhancements have been made to the Expression Builder so that you can efficiently build expressions in a user-friendly environment.
These enhancements apply to the Expression Builder for the following types of rules:
- Data Transform
- Map Value
- Decision Tree
- Decision Table
Expression Builder commenting and line numbers
The Expression Builder provides real-time validation of expressions as you enter them. You can receive immediate feedback on your syntax as you compose your expressions.
For example, error icons are displayed next to the lines that contain syntax errors. Hover your mouse over the error to view additional information.
Expression Builder syntax error
You can also receive immediate feedback on your expression by clickingto open the Test data pane. Errors are displayed in the area above the text editor. For example, the Reviewer property in the following figure is a Text type, and you cannot perform an arithmetic function on it.
Expression Builder expression validation error
Thepane displays all the scalar properties that are used in the expression in the order in which they appear. Default values for properties depend on the type of property type. In the following figure, the properties are decimal types, and so the default values provided are 0 (zero).
Expression Builder Test data pane
To test the entire expression, enter values for all the properties, and click an area of the Expression Builder other than the input fields. The result is displayed in thefield above the text editor.
Testing the entire expression in the Expression Builder
To test a portion of the expression, enter values for the properties that you want to test and highlight the portion of the expression to test. The result is displayed in thefield above the text editor.
Testing a portion of an expression in the Expression Builder