You can now author rules using the vocabulary created at the beginning of the tutorial.
When developing a rule project, the developer writes the initial rules, designs rule templates, and organizes the folders used to manage the rules. Later, the business user writes and edits these rules in a web environment, though a developer might be asked to write more complex rules.
In this task, you first create an action rule, and then import the rules already prepared for you. In Rule Designer, you use the completion menu to write the following action rule that is based on the vocabulary that you created:
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' ;
This task should take you about 15 to 30 minutes to complete.
The first rule that you are going to write rejects the loan if the requested amount is greater than 1,000,000.
To create an action rule:
You now use the code completion mechanisms of the Intellirule Editor to help you create the rule.
To complete the action rule:
To complete the policy, you must add the rules that determine whether a borrower is eligible for a loan. For this tutorial, you import the eligibility rules into your rule project.
To import the remaining rules:
To view the rules that you imported:
You have created rules and defined the flow to execute them. You have used ruleset parameters as data to be processed by the ruleset. In the next task, you create an Excel file in which you enter scenarios to test your rules.