Rule Builder > Queries and Facilities > Query Examples > Ruleflow-based Query

You can also add a ruleflow to a query package. To do this you need the Ruleflow plug-in installed. To create a ruleflow-based query proceed as follows:

  1. Click options on the File menu to open the Options dialog box. Install the Ruleflow plug-in, and click the OK button.
  2. Right-click the p query package and then click Add Ruleflow on the shortcut menu, as shown in Figure 17.32. You can also click Add Ruleflow on the Project menu or click the images/add_ruleflowicona.png button on the main toolbar.

  3. images/add_ruleflow.png
  4. Figure 17.32    Adding a Ruleflow
  5. The Ruleflow Editor opens up for you to create your ruleflow graphically. Add one start node, one end node, and drag and drop the rule query "Priority Parameter" into the ruleflow. Add a transition from start node to "Priority Parameter" and from "Priority Parameter" to end node using the images/icon_CreateTransitiona.png button. Your ruleflow query should look like Figure 17.33.

  6. images/query_panel4.png
  7. Figure 17.33    Ruleflow Query
  8. Click the images/executequery_icona.png button to execute the rule query. This produces the same result as for the parameter query example, as shown in Figure 17.31, but in this case execution is performed through the ruleflow.

See Also

Ruleflows


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