Rule

The Rule element provides a graphical representation of the 'rule' expression and negates a Boolean value. No other palette elements can be added to the Reference element. The Rule element can be added to other palette elements, for example, And Rule Group, Or Rule Group or Repeating Rule. There are seven different types of scenarios to use the Rule elements. A reference to a rule can be added when a user is in the Business View (See Section 2.3.1, of the Working With CER ) and in the Technical View (See Section 2.3.2, of the Working With CER ). When a user is in the Business View the following options are available:

When a user is in the Technical View the following options are available:

If a user is in the Business View and they wish to add a reference to a specific Rule Class or Attribute, the user must switch to the Technical View.

Table 1. Types of scenarios to use the Rule elements
Name Description
Nested Reference A nested reference can be created on the reference which points to an attribute that is of another rule class type, for example, it is not contained in the existing class. The outer most reference attribute is an object of inner reference attribute class. This structure can be created only if the inner reference attribute, which is of another rule class type, is located in the class where the inner reference is being created.
Nested Reference with Create A nested reference can be created on the reference which points to an attribute that is of another rule class type, for example, it is not contained in the existing class, but the attribute is not located in the current class. The outer most reference attribute is an object of inner reference attribute class. This structure can be created only if the inner reference attribute (which is of another rule class type) is located in the class which is not the class where the inner reference is being created.
CurrentUnitMemeber To refer to the member in the current unit that satisfies the exceptional test condition.
FARelationship To refer to the class that is used as the relationship record for the meal group member.
FAException To refer to a class that is used to check if other members in a unit satisfy the exceptional condition.
HC Current To refer to a current list element (like Household member etc) in the household composition HCCurrent is used.
Current To refer to a current list element in the lists like dynamiclist Current element is used. If an attribute of the current list element class has to be referred then a reference pointing to that attribute is wrapped around the current element.

Properties:

The following table lists specific properties items for this element:

Table 2. 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 3. Rule Element Pop-up Menus items
Name Description
Wrap in OR Wrap the Rule element in the Or Rule Group element.
Wrap in AND Wrap the Rule element in the And Rule Group element.
Edit Rule Edit the Rule element by choosing the rule you want to refer to. See the Edit Rule Wizard as follows.
Open Diagram For This Rule Opens the diagram for the rule being referened in a new diagram tab.
Include Rule Logic Here If the Rule element is referring to another rule (in the same ruleset or in another external ruleset), the logic for that rule can be included in the current rule being viewed in the editor.