Blog Viewer

Create a Decision Table with an Effective Date

  

Introduction

You may have a business need to apply different versions of the same rule based on the date the systems calls the rule. To use an existing decision table with values changed at a particular point in time, you should create a decision date in S3 so the user can access the updated decision table in the LOB application.

QUICK STEPS
1 Open the rule GetInterestRate_01
2 Click the Add New Version icon
3 Enter the details
4 Click OK
5 Open the new version of the decision table
6 Update the decision table
7 Build the entity rule
8 Navigate to the scenario
9 Create a new test step
10 Enter the new test step
11 Click OK
12 Enter the values for the test
13 Build the rule
14 View the diagram

 

Detailed Steps

Step 1. Open the rule GetInterestRate_01

Open the rule you created earlier. You will be adding an effective date to the existing rule.




    Step 2. Click the Add New Version icon.

    You can add as many versions of a rule as you want.




    Step 3. Enter the details.

    The important properties are:

    • Effective Date: It is the date the logical rule is effective/ applicable form.
    • Description: Optionally, you can enter a short description for you rule. 
    • Status: Specifies whether the current rule is active or inactive.
    • Copy Current Rule: If checked, the current rule will be copied to the new version.
    • Default Version: If checked, the rule will be sent as the default. This means it will always run unless the system date is equal to or greater than the Effective Date.




    Step 4. Click OK.



    Step 5.
    Open the new version of the decision table.

    Open the newly created version of the decision table. Below the title bar of the decision table interface all the versions of the decision table are displayed.





    Step 6. Update the decision table.

    Change the values of the expression for the condition and the action according to your business needs.

       




      Step 7. Build the entity rule.

      You must build the rule so it can be tested later.






      Step 8. Navigate to scenario.

      The scenario already exists because you created it in the previous activity.




        Step 9. Create a new test step.

        In the left Tests panel, click the plus icon to add test steps.




        Step 10. Enter the test step details.

        Enter the new Test Step details. The important properties are:

        • ID: The programmatic ID of the test step.
        • Description: Optionally, you can enter a short description for the step.
        • Effective Date: The data set while creating the version of the decision table. Basically, the decision table with the effective date will be applicable to the current test step.






        Step 11. Click OK.



        Step 12. Enter values for test.

        Enter the Input Value and Expected Value for each desired step. 




        Step 13. Run the Test.

        Click the Run Test icon to run them individually. You can also use the Run All icon to run all the steps.








        Step 14. View the diagram.

        The details of the decision table scenario execution are displayed. It displays the flow of execution from condition to action.


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


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

        0 comments
        40 views

        Permalink