After you create business rules, you need to test them to ensure they work as expected. Find out the best way to test your rules. Then see how you can create Web services from them and run your rules using the Web service navigator. Finally, obtain an understanding about how a rules engine works in detail and how you can influence the rule’s execution sequence.
The Test Scenario tab in SAP NetWeaver Developer Studio allows you to provide input parameters to your rule set by filling out appropriate fields in an XML file. This XML file is automatically generated for you based on the fields you have selected in the Project Resources editor.
In “SAP NetWeaver Business Rules Management: Externalize Critical Business Logic for Enhanced Flexibility” you learned how to model Rete-based business rules using SAP NetWeaver Business Rules Management (SAP NetWeaver BRM). You used the Rules Composer to define a set of IF-THEN-ELSE rules for calculating discounts — a typical example for the use of business rules.
Now that you have your rule set in place, I explain what you need to do after you create it:
- Test rules within SAP NetWeaver Developer Studio
- Deploy your rule set to the server and run them
- Create Web services out of your rules and run them within the Web service navigator
- Read the logs the rules engine generates during runtime and understand how they were created