Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Model Rules In an Operation

You can model business rules either in the Business Rule elements attached to the Rule Task element in a RuleFlow Activity diagram, or in the operations of the rule Class in the Business Domain model.

How to

To model business rules for an operation



See also


Open the Properties dialog for the operation and, in the Stereotype field on the General tab, type the value RuleTask.



In the Project Browser, right-click on the operation and select the Rule Composer context menu option to open the Rule Composer.



Model the rules for the operation.


Compose Business Rules




See also


The operations appear in the Project Browser as shown below:




On code generation, the code for rules logic is generated in the method body.

When you drag and drop a RuleTask operation onto a Rule Flow diagram, an operation call behavior action is created.

To pass the parameters for this operation call, open the Properties dialog and select the Call tab, then set the Behavior field to the operation to be called; under the Arguments field, click on the Edit Arguments button and edit the argument values to be passed.

On the diagram, the call behavior actions for the RuleTask operations are shown as illustrated below:




Behaviour Calls

Behaviour Call Arguments

Learn more