Task 3: Authoring rules
You write an action rule and import other rules for your rule project.
About this task
As a developer, you write the initial business rules and design the rule templates. You want to enable business users to write and edit business rules in a web environment.
You create an action rule, and then you import the rest of the rules for your project. An action rule states the actions to take under certain conditions. You write the following rule, which is based partly on the vocabulary that you created earlier in this tutorial:
if the amount of 'the loan' is more than 1,000,000 then add "The loan cannot exceed 1,000,000" to the messages of 'the loan'; reject 'the loan' ;
Step 1: Creating an action rule
About this task
You create an action rule that rejects any loan request that has an amount that is greater than 1,000,000.
Procedure
Results
Step 2: Completing the action rule
About this task
You use the code completion menu in Intellirule to complete the action rule. You must create the parts of the rule, and use the completion mechanism to select phrases from a list of rule fragments to author the rule.
Procedure
Results
For more information about using the rule editors, see Working with action rules.
Step 3: Importing remaining rules
About this task
You must now add the rules that determine whether a borrower is eligible for a loan. In this step, you import the eligibility rules into your rule project.
Procedure
Results
The eligibility rules are now in your project in the Rule Explorer.
Step 4: Viewing the imported rules
About this task
Procedure
What to do next
You created rules and defined the ruleflow to run them, and you used ruleset parameters as data to be processed by the ruleset. In the next task, you test and debug your rules.





