此内容没有您所选择的语言版本。

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:
  1. Open your Business Process in Process Designer: in Project Explorer, select the HelloWorld project, the org.bpms package, click on BUSINESS PROCESSES and click the HelloWorld process.

    Note

    Make sure to select the org.bpms package. Selection of an incorrect package causes the deployment to fail.
  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 7.1. The helloworld process with the Business Rule Task and its properties

  5. Click the save button to save the changes.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部