Fixed definitions are primarily used to navigate entity relationships among objects and declare values that can be used in many rules. You cannot use an Assign action in a fixed definition.
You can create fixed definitions on primitive data types and Java objects in the rules composer.
For example, while processing an insurance policy, a Definition can be declared a constant value as follows:
Name |
Type |
Value |
---|---|---|
UpperLimit |
int |
100000 |
This fixed definition can be used in a condition in an If-Then rule as follows:
If |
|
InsurancePolicy.getAmount < UpperLimit |
|
Then |
|
... |