6.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:
  1. Open your Business Process in Process Designer: in Project Explorer, select the HelloWorld project, click on the BUSINESS PROCESSES and select the HelloWorld process.
  2. 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.
  3. 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.
  4. Select the Business Rule Task and define its properties in the Properties panel:
    • Name: BusinessRule
    • Ruleflow Group: helloworldgroup
      The Ruleflow Group property defines the group of rules that should be fired when the Task is being executed. In this example, only one rule, the helloworldrule rule defined in the helloworldrule.drl file, is present in the helloworldgroup group.
    The HelloWorld process with the Business Rule Task and its properties.

    Figure 6.1. The HelloWorld process with the Business Rule Task and its properties.

  5. Save the changes by clicking the Save button in the upper left corner.