Debugging a decision service
This tutorial provides a methodology for debugging a decision service in Rule Designer.
Learning objectives
You use debugging features to find and fix errors in a decision service. The tutorial includes the following tasks:
- Using automatic exception handling
- Setting breakpoints in a ruleflow, action rule, and decision table
- Running a debugging session
- Identifying and fixing errors
Best practices
This tutorial includes the following best practices for debugging decision services:
- Carefully read the error messages. They tell you where to look for errors. Example...
- Try automatic exception handling when an exception occurs in a rule condition. Example...
- Check the stack trace to get the names of ruleflows and rule tasks. Example...
- Switch to the debug mode to get more precise error information. Example...
- Use the rule search to find artifacts, and the Java search to find Java XOMs. Example...
- Use queries to find rules by their content. Example...
- Check the values in the Variables view at each breakpoint during debugging. Example...
- Check the Agenda view to see which rules are going to be run. Example...
Time required
This tutorial takes about 40 minutes to complete.