Introduction
You may have a business need to apply different versions of the same decision table based on the date the system calls the decision table. To use an existing decision table with values changed at a particular point in time, you should add a version with an effective date so the user can access the updated decision table in the application.
Prerequisites
The decision table must already exist.
|
Quick Steps |
| 1 |
Open the decision table, then click the Add New Version icon |
| 2 |
Enter the details, then click OK |
| 3 |
Open the new version of the decision table |
| 4 |
Update the decision table |
| 5 |
Save the decision table |
| 6 |
Open the scenario |
| 7 |
Click the Test Cases heading, then create a new test case |
| 8 |
Enter the test case details, then click OK |
| 9 |
Enter the effective date and values for the test |
| 10 |
Run the test |
| 11 |
View the diagram |
| 12 |
Close the diagram |
| 13 |
Save the scenario |
Detailed Steps
Step 1. Open the decision table, then click the Add New Version icon.
Open the decision table you want to add a date-specific version to. You can add as many versions of a decision table as you want.
Step 2. Enter the details, then click OK.
The important properties are:
- Effective Date: Date the decision table is effective/applicable from.
- Status: Specifies whether the current decision table is active or inactive.
- Description: Optionally, you can enter a short description for your decision table.
- Default Version: If checked, the decision table will be set as the default.
- Copy Current Rule: If checked, the current decision table will be copied to the new version.
Step 3. Open the new version of the decision table.
Open the newly created version of the decision table.
Step 4. Update the decision table.
Change the values of the expression for the condition and the action according to your business needs.
Step 5. Save the decision table.
Step 6. Open the scenario.
Step 7. Click the Test Cases heading, then create a new test case.
In the Test Cases panel, click the plus icon to add a test case.
Step 8. Enter the test case details, then click OK.
Enter the new Test Case details. The important properties are:
- ID: Programmatic ID of the test case.
- Description: Optionally, you can enter a short description for the step.
Step 9. Enter the effective date and values for the test.
Enter the Effective Date, Input Value, and Expected Value for each desired step.
Step 10. Run the test.
Click the Run Test icon, then click Current Rule.
Xelence provides the following options for running the test:
Only Result : Displays only the result.
Current Rule: Displays the result and diagram for this rule.
Step 11. View the diagram.
Click the View Test Result icon to display the flow of execution from condition to action.
Step 12. Close the diagram.
Step 13. Save the scenario.
When you are finished testing steps, save the scenario.
What are the improvements over S3 Version 6?
This is an identical process.
Related Articles
Create a Decision Table with One In Variable
Test the Decision Table
Add a Variable to an Existing Decision Table and Test the Rule
This post is part of the Rules topic. Click here to open the Rules Overview.
#Xelence
#Rules