Rule Builder > Debugging and Profiling > Testing the Execution of a Ruleset > Ruleset Execution in the Rule Builder

The execution of a ruleset follows six steps, which are done automatically and almost simultaneously in the Rule Builder. You can also follow these steps manually using Rule Builder menus. These steps are the following:

  1. Checking the execution ruleset.
  2. Instantiating a new engine or connecting to an existing engine.
  3. Sending the ruleset to the engine.
  4. You can send the rules to the engine manually by right-clicking and choosing Send Rules to Engine on the package shortcut menu of the Project Explorer.
  5. Resetting the engine (if you test the execution of a new ruleset on an already instantiated engine). Before the rules are fired, the method IlrContext.reset is called on the engine automatically. This method resets the engine. By default, it removes all the objects from the working memory and executes the functions. If you need a more complex initialization sequence, rewrite this method in your own IlrContext class.
  6. You can reset the engine manually by right-clicking and choosing Reset on the engine shortcut menu in the Engine Explorer.
  7. Executing the ilrmain function, if it exists, or executing the ruleset in the engine.
  8. You can execute the function ilrmain or execute the ruleset in the engine by choosing Execute ilrmain or right-clicking and choosing Execute on the engine shortcut menu in the Engine Explorer.
  9. Activating the Debugger and Profiler tools.

See Also

Business Rule Checks | Instantiating an Engine in a Separate Thread | Connecting a Remote Engine


Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. PREVIOUS   NEXT