Show Table of Contents
7.2. Adding the Business Rule Task
A Business Rule Task is a task which fires rules that belong to a certain ruleflow group.
To add a Business Rule Task to your process, do the following:
- Open your Business Process in Process Designer: in Project Explorer, select the
HelloWorldproject, the org.bpms package, click on BUSINESS PROCESSES and click theHelloWorldprocess.Note
Make sure to select the org.bpms package. Selection of an incorrect package causes the deployment to fail. - In the displayed Business Process designer with the helloworld process, expand the Object Library palette with Process Elements: click the double-arrow button (
) in the upper left hand corner of the Business Process designer tab.
- Expand the Tasks menu and drag-and-drop the Business Rule task to the canvas on the right.Adjust flow connections so as to integrate the task into the workflow.
- Select the Business Rule Task and define its properties in the Properties panel:
- Name:
BusinessRule - Ruleflow Group:
helloworldgroupThe Ruleflow Group property defines the group of rules that should be fired when the Task is being executed. In this example, only one rule, thehelloworldrulerule defined in thehelloworldrule.drlfile, is present in thehelloworldgroupgroup.

Figure 7.1. The helloworld process with the Business Rule Task and its properties
- Click the save button to save the changes.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.