CONDITION element

The CONDITION element represents the condition under which an ACTION_SET, ACTION_CONTROL, LIST, or a CLUSTER is displayed.

If a condition evaluates to true, then the parent element will be displayed; if the condition evaluates to false, then the parent element is not displayed with the following exception: an ACTION_SET or ACTION_CONTROL element will display disabled links if the condition evaluates to false and the HIDE_CONDITIONAL_LINKS attribute on the PAGE element or in the curam_config.xml file has been set to false. Conditional ACTION_SETS and ACTION_CONTROLS are mutually exclusive from one another and therefore the CONDITION element should be set for either one (depending on the requirements) but not both.

Finally, if the condition equates to false for those conditional action sets or action controls which appear as drop down menu items, then a single disabled menu item titled, 'No Contents' is displayed (upon selecting the drop down menu icon).

Attributes

The CONDITION element has the following attributes.

Table 1. Attributes of the CONDITION element

Attribute Name

Required

Default

Description

TYPE

No

 

Configuring the TYPE to be DYNAMIC enables cluster be dynamically displayed depending on input from the current UIM page.

Child elements

The CONDITION element must contain either an IS_TRUE element or an IS_FALSE element. It must not be empty and it must not contain more than one element.

Table 2. Child Elements of the CONDITION Element
Element Name Cardinality / Description

IS_TRUE

0..1 If the property referenced by the IS_TRUE element returns true then the condition is true.

IS_FALSE

0..1 If the property referenced by the IS_FALSE element returns false then the condition is true.

SCRIPT

0..1 This is used to configure a JavaScript function that evaluates a Dynamic Conditional Cluster.

For Agenda Player specific use, see Agenda Player