@@ -2119,10 +2119,90 @@ public class ThrowsExceptionBehavior implements ActivityBehavior {
<targetRef>OutputVariable</targetRef>
</dataOutputAssociation></programlisting>
</section>
</section>
</section>
<sectionid="bpmnBusinessRuleTask">
<title>Business Rule Task</title>
<linklinkend="experimental">
<emphasisrole="bold">[EXPERIMENTAL]</emphasis>
</link>
<sectionid="bpmnBusinessRuleTaskDescription">
<title>Description</title>
<para>
A Business Rule task is used to synchronously execute one or more ruleset or rules. Activiti uses Drools Expert, the Drools rule engine
to execute business rules. For this release, the .drl files containing the business rules have to be deployed together with the process definition
that defines a business rule task to execute those rules. This means that all .drl files that are used in a process have to be packaged
in the process BAR file like for example the task forms. For more information about creating business rules for Drools Expert please refer to the Drools
documentation at <ulinkurl="http://www.jboss.org/drools/documentation">JBoss Drools</ulink>
To execute one or more business rules that are deployed in the same BAR file as the process definition, we need to define the input and result variables.
For the input variable definition a list of process variables can be defined separated by a comma.
The output variable definition can only contain one variable name that'll be used to store the output objects of the executed business rules in a process variable.
Note that the result variable will contain a List of objects. If no result variable name is specified by default org.activiti.engine.rules.OUTPUT is used.
</para>
<para>
The following business rule task executes all business rules deployed with the process definition: