Ruleset execution procedures
When you write an execution method, you can also retrieve the number of rules executed and the output ruleset parameters, set an exception handler, and add the root object of an XML data file.
In these procedures, you learn how to write code for the following purposes:
Write a ruleset execution method
Execute rules and get the number of rules executed
Get the output ruleset parameters for all output parameter pairs
Set an exception handler to treat user code exceptions that may be thrown during rule execution
Add the root object of an XML data file
A parsed ruleset is not necessarily empty when the parsing occurs. If a ruleset already exists in the engine, a merge silently occurs to take into account the latest version of the rules, functions, tasks, and so on in the case of conflicts.
If you have created your rules in a rule project, you can find the generated ruleset archive at the root of the Java™ Project for Rules (default: ruleArchive1.jar).
You must enable sequential debugging before rule parsing.