concept rule task in category jboss

This is an excerpt from Manning's book Effective Business Process Management with JBoss BPM.
The business rules engine in this layer is responsible for rule parsing, evaluation, and execution. It is called by the application code and is supplied with the gathered data, and the rule set used to test the data. If data matches a rule it triggers predefined actions. For example, a persons’ age is passed to a validation rule set that determines if the person is a minor or an adult. If the data puts the age under eighteen years old, the person is labeled a minor, otherwise they are labeled an adult. A second way to use a rule engine is through a business process. A business process can have a rule task, which is supplied with details for calling a rule set with data from the process. Often the outcome of the rule is used in a decision later in the process to take a specific path over another.
You can find and open the calculatepriceprocess that is found in the Business Processes listed in the Project Explorer panel on the left. The process shown in figure 2.12 is your first ruleflow, a process type that contains only rule interactions and orchestrates the order in which these tasks are processed. Note that each task in this process is a rule task, specifically designed to take a given group of rules and evaluate them against data found in the process variables within this process instance.
Figure 7.26. The extended process with a rule task and a script task inserted.
![]()