Automated query execution

This sample demonstrates how to run a query on your business rules by using the query API.

Time required

10 minutes

Prerequisites

You must have Rule Designer installed to import and run this sample.

Description

This sample shows how to run a query on your business rules by using the query API. The input into the sample is a query and a target project that contains the rules. You supply the input query in one of the following ways:

  • As a path to a query in a decision service.
  • As a simple text string.
  • As a path to a query in a compressed file.

The key features of this sample include:

  • Develop an Eclipse plug-in by using the exposed Rule Designer API.
  • Automate Rule Designer tasks through Ant tasks.
  • Retrieve a project, query, and query folder in the workspace from a name.
  • Check whether a project or a query are defined in the workspace.
  • Run a query that is defined as a simple text or from an existing query in a decision service.