Application Designreference Business Rule Component

A Reference is a business rule component that loads business rule components from another business rule into the current business rule.

Best Practice

When calling a sibling business rule component that you did not write (for example, by using a reference business rule component), use a separate event instead of using includeSiblings to propagate an event.

Tip: For an example of how to use a Reference business rule component to load data sources from a label template into the data map, see Access Label Data Sources (XML).

The following is the syntax for a Reference 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

<reference name="This_component" namespace="Parent_of_component"
sticky="true|false" 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<!-- Parameters -->

 

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. -->

</children>

 

<!-- Reference functionality -->

<!-- Specify the full path to a business rule in Loftware Enterprise SP. Alternatively, to use data sources configured in the label template, specify !DOCUMENT_DEFAULT!. -->

<referencePath>Path_in_Loftware Enterprise SP</referencePath>

</reference>

Syntax Tips

Additional information is available about the following items.

Closedalias

ClosedconfiguratorType

Closedname

Closednamespace

Closedsticky

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.