Online Helps > Rule Execution Server Console > Monitoring Ruleset Execution > Testing Ruleset Execution

The Rule Execution Server Console provides a Web testing interface to enter ruleset parameter values and invoke a deployed ruleset.

To test the invocation of a ruleset:

  1. In the Navigator panel, click the relevant ruleset.
  2. In the Ruleset View, click images/testruleset.png Test Ruleset.
  3. The Test Ruleset View opens. This views shows a table listing the input parameters for the ruleset. If there are dependencies between your ruleset parameters, you can reorder them accordingly. Select a parameter using the check box, then click Up to move the parameter up the table, or click Down to move it down the table.
    If your ruleset parameters are XML-based, no value is set for them. If they are Java-based, a default value is set.
  4. To edit the values for each of the input parameters, you can use plain text or upload a file:
  5. To enter text, click images/editicon.png Edit mode on the right of the field and type a value for the parameter.
    The following is an example for an XML parameter named customer:
<?xml version="1.0" encoding="UTF-8"?> 
<customer xmlns:ns="http://www.ilog.com/rules/customer"> 
   <name>John Smith</name> 
   <owner>George Smith@ILOG</owner> 
   <initialValue>2000.0</initialValue> 
   <currentValue>800.0</currentValue> 
   <sectorPosition>800.0</sectorPosition> 
   <bankStockPosition>800.0</bankStockPosition> 
   <oilStockPosition>800.0</oilStockPosition> 
   <railStockPosition>800.0</railStockPosition> 
   <bondPosition>800.0</bondPosition> 
   <futurnPosition>800.0</futurnPosition> 
   <stockPosition>800.0</stockPosition>
   <currency>Euro</currency>
</customer>
To enter data from an XML or Java file, click images/uploadfile.png Upload file, and then click Browse to select a file using the Choose File dialog.
  1. Click images/visualizationmode.png Visualization mode to save the value.
  2. Enter the Execution URL.
  3. This value is mandatory and should point to the Servlet provided in the archive <InstallDir>/executionserver/applicationservers/<appservername>/jrules-ssp-<appservername>.ear.
    The Web application defines a rule execution Servlet that responds to a URL. When a client sends an execution request to this URL, the Servlet responds by initializing the input parameters, invoking the ruleset using a stateless rule session, and returning the output parameters.
  4. If you want to execute the ruleset using a known rule task, select the check box next to Execute Task, and enter the name of the task in the text box.
  5. Click Execute.

The Test Ruleset View page then displays the results of the invocation. Two boxes are displayed:

Note
The Web testing interface is not a programmatic interface and is not designed for automated execution.

See Also

Generating Ruleset Statistics