Introduction
A constant defines a value that parameterizes rules. This means that instead of defining a particular limit within a rule, you can specify the limit as a constant and then refer to that constant in any of your rules (as well as within the application code).
You create manual constants when you need constants you can't define as query results.
|
QUICK STEPS |
|
| 1 |
Click the Tools icon and select Constants |
|
| 2 |
Add a group |
|
| 3 |
Enter the ID |
|
| 4 |
Click OK |
|
| 5 |
Add a constant to the group |
|
| 6 |
Enter the ID |
|
| 7 |
Click OK |
|
| 8 |
Enter the constant details |
|
| 9 |
Save the Constants file |
|
Detailed Steps
Step 1. Click the Tools icon and select Constants.

Step 2. Add a group.
By default, the Constants file starts with one group called MainGroup. You can organize your constants in any number of nested groups under that. To add a group, right click a group and select Add Groups.

Step 3. Enter the ID.
Every group has to have an ID. It cannot contain spaces.

Step 4. Click OK.
Step 5. Add a constant to the group.
You are adding a manual constant, which is selected by default.

Step 6. Enter the ID.

Step 7. Click OK.
Step 8. Enter the constant details.

You can continue adding groups and constants until you have added all the values you need for your business logic.


This post is part of the Rules topic. Click here to open the Rules Overview.
#Develop
#Rules
#Task Steps
#Everyone
#Text Help