Use the rule expression language to create the expression component of a data-entry rule, workflow rule, or global condition.
You create rule expressions in:
As you type, a list of the rule model components that you can use in the expression (study objects and their properties, functions, constants, and data mappings) appears in the Expression workspace. When you select a rule model component, a tooltip appears to indicate its usage (for example, the parameters and their data types required for using a function). The list changes dynamically to support the contents of the expression as you create it.
You can also use the following methods for creating a rule expression:
A rule expression can include any valid C# expression that can appear on the right side of the equals sign (=), including:
A rule expression cannot include:
Use functions to build more complex rule expressions. For more information, see Functions tab of the Rule Wizard (in the Rules Reference Guide).
The rule expression does not allow flow-of-control operators, such as like, if, then, for, or while. You can use parentheses to provide better readability and grouping.
An expression must evaluate to one of the following types:
Note: A rule expression is similar to a switch statement in C++, C#, or Java.
Copyright © 2013 Oracle and/or its affiliates. All rights reserved. |
---|