Application Designconditional Business Rule Component

A Conditional business rule component allows you to determine whether to perform an action based on the result of a comparison of values or the result of a logical operation.

The following is the syntax for a Conditional business rule component.

Important! Content in a business rule is case sensitive. This includes business rule component names, attributes, and values.

Note: For each business rule component, most elements and attributes are optional, but you should specify enough to achieve the functionality that you intend. In most cases, you can omit attributes that are not relevant to your task and default values will be used. You must specify a name and a namespace. Except where otherwise indicated, attributes accept string values.

ClosedAbout the syntax documentation

<conditional name="This_component" namespace="Parent_of_component"
configuratorType="Block_type_ID" alias="Data_reference">

<!-- Triggers -->

<!-- Required. Specify which event will cause this business rule component to run. For more information, see Triggers. -->

<triggers>

<trigger eventTrigger="ENQUEUE|PRINTJOBDETAIL|LABEL|Custom_Event" priority="integer" propagation="NONE|BEFORE|AFTER"/>

</triggers>

 

Closed<!-- Execution condition -->

 

Closed<!-- Default data -->

 

Closed<!-- Common custom events -->

 

<!-- Child business rule components -->

<!-- You can create child business rule components to be run whenever the trigger event for this business rule component occurs. -->

<children>

<!-- The child business rule components have the potential to run once per triggering of the business rule component. However, a child business rule component will not run unless its own trigger event occurs. -->

<!-- To allow a child to run only if the condition is true, set the trigger in the child business rule component to an event name specified in trueConditionEvents. -->

<!-- To allow a child to run only if the condition is false, set the trigger in the child business rule component to an event name specified in falseConditionEvents. -->

</children>

 

<!-- Conditional functionality -->

<condition>

<!-- Logical expression resulting in a condition of true or false. You can perform a logical operation, a comparison, or a data map entry state operation. You can nest operations to create a more complex expression. For more information, see Logical Operations and Comparisons. -->

</condition>

 

<trueConditionEvents>

<!-- Definition of an event that occurs if the condition is true. -->

<trueEvent eventName="Event_if_true" includeSiblings="false|true"/>

</trueConditionEvents>

 

<falseConditionEvents>

<!-- Definition of an event that occurs if the condition is false. -->

<falseEvent eventName="Event_if_false" includeSiblings="false|true"/>

</falseConditionEvents>

</conditional>

Syntax Tips

Additional information is available about the following items.

Closedalias

ClosedconfiguratorType

Closedname

Closednamespace

Tip: For assistance with a business rule that you have created or to have Loftware create business rules for you, contact Loftware's Professional Services Group.