Shared Rule Reference

Shared Rule Reference is basically a normal Reference with a Create element in it. Shared Rule reference shows a wizard that displays the names of the Rule classes that have Primary attribute set in the current rule set. Shared Rule Reference can be edited by selecting the "Edit Shared Rule Reference" menu option on the diagram. A shared rule is a class with a primary attribute in it. The Shared Rule Wizard allows the user to create a Shared Rules that can be used for creating the Shared Rule References.

Properties:

The following table lists specific properties items for this element:

Table 1. Shared Rule Reference properties items
Name Description
Class The name of the rule class. This is visible in the Business Tab.
Attribute The name of an attribute. This is visible in the Business Tab.
Single Item Only one item returned from the element. This is visible in the Technical Tab.
Behavior when no items found Return either one of these results (error, return null) when no items found. This is active when the Single Item Box is checked.
Behavior when multiple items found Return either one of these results (error, return null, return first, return last) when multiple items found. This is active when the Single Item Box is checked.

Pop-up menu:

The following table lists specific pop-up menu items for this element:

Table 2. Shared Rule Reference Element Pop-up Menus items
Name Description
Wrap in OR Wrap the Shared Rule Reference element in Or Rule Group element.
Wrap in AND Wrap the Shared Rule Reference element in the And Rule Group element.
Edit Reference Edit the Reference element by choosing the rule you want to refer to.
Edit Shared Rule Reference Edit the Shared Rule Reference element by choosing the shared rule you want to refer to. See the Shared Rule Edit Reference Dialog box as follows.
New Parameter Create a new parameter by selecting the attribute you want to add a parameter for. See the New Parameter Dialog box as follows.
New Mandatory Parameter Create a new mandatory parameter.