Blog Viewer

Create a Manual Constant

  

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.

Right click the group you want to add the constant to and click Add Constant.

 


Step 6. Enter the ID.

This ID cannot contain spaces.





Step 7. Click OK.


Step 8. Enter the constant details.

Besides the ID, which you entered when you created the constant, the two required details are:

  • Value: Specifies the value you want to set to the constant.
  • Data Type: Specifies the data type for the constant.

You can also specify effective date(s) and associated value (s). If your constant needs to change value depending on the date, add rows under the items property and enter the date and the value the constant should be on that date. An example of a constant with an effective date is a financial rate tied to the fiscal year: when the fiscal year changes, the rate needs to change.


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


Step 9. Save the Constants file.


This post is part of the Rules topic. Click here to open the Rules Overview.

#Develop
#Rules
#Task Steps
#Everyone
#Text Help

0 comments
34 views

Permalink