Optimize 10.5 | webMethods Optimize Documentation | Using webMethods Optimize | Defining Rules | Creating Rule Expressions | Creating a Simple Rule Expression
 
Creating a Simple Rule Expression
 
Defining KPI Value as the First Operand
Defining Math as the First Operand
Defining Event Text or Event Value as the First Operand
A simple rule expression consists of two operands and a single logical comparator. For example, to detect a queue size greater than 1000, you would specify a queue size attribute as the first operand. Then you would specify the number 1000 as the second operand. Finally, you would select “greater than” as the comparator.
The following task sections provide detailed steps for creating various types of simple rule expressions. The first task is a high-level view of the overall process for creating a simple rule expression, and the subsequent tasks go into more detail about how to define the different operands available when creating a simple rule expression.
*To create a simple rule expression (high-level overview)
1. In the Expression list in the Rule Expression panel, click Simple Expression.
2. Define the first operand of the two operands that you want to compare in the simple rule expression. In the first Operand list, begin by selecting one of the operand types. Note that the available operands are determined by the Rule Type that you selected in the Attributes panel.
The following table describes the operand types and the corresponding rule types.
Operand Type
Available for Rule Type
Description
KPI Value
KPI
The operand is an attribute of a type of KPI instance, as follows:
*A data value, such as the last summarized data sample collected.
*A statistical value, such as the mean of a sampling interval.
*A diagnosis value, such as the last data point is greater than the previous data point (that is, data points are trending up).
Event Value
Event
The operand is an attribute of a type of KPI instance. Real-time value of an event flowing into a KPI instance.
Event Text
Event
The operand is a KPI value that may be compared to a text operand.
Math
KPI
Use this operand to perform a mathematical operation on the operand, such as add, subtract, multiply, or divide, using a value that you specify.
Threshold Value
Threshold
The operand is an attribute of an event map. Examples: Dollar amount of a single order. Person who approves a purchase.
For details on how to define the first operand in a simple rule expression, see one of the following group of tasks:
* Defining KPI Value as the First Operand
* Defining Math as the First Operand
* Defining Event Text or Event Value as the First Operand
3. In the Comparator list, select the logical comparator (such as Equal To) to compare the two operands of the simple rule expression (also referred to as a Boolean expression).
4. Define the second operand of the two operands that you want to compare.
For more information on how to define the second operand in a simple rule expression, see one of the following tasks:
* Defining KPI Value as the First Operand
* Defining Math as the First Operand
5. Click Save to save the simple rule expression.