Application DesignxmlData Business Rule Component

An XML Data business rule component can be used to convert data that is in an XML format into data map entries. This type of business rule component can be used to produce data map entries from XML data, such as the XML data received from a SOAP Web Service data service.

Important! If you are using an XML Data business rule component in conjunction with a SOAP Web Service data service, the Result Name specified in the SOAP Web Service data service must be the name of the XML Data business rule component.

The following is the syntax for an XML Data 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.

Important! In an XML Data business rule component, you must specify dataType and resultName attributes.

ClosedAbout the syntax documentation

<xmlData name="This_component" namespace="Parent_of_component"
resolveValue="true|false"
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>

 

<!-- XML Data functionality -->

<!-- You can specify an xPath expression to filter the XML data, potentially omitting irrelevant portions of the data. If xPathExpression is specified, it indicates what to omit. If xPathExpression is not specified, then all of the data is returned. -->

<xPathExpression>xPath expression</xPathExpression>

 

<!-- Required. You must specify the XML data to be converted into data map entries. The XML data must use UTF-8 encoding without a byte order mark (BOM). Whether data is the XML itself or a key pointing to the XML data is determined by resolveValue. -->

<data>XML data to convert to data map entries</data>

</xmlData>

Syntax Tips

Additional information is available about the following items.

Closedalias

ClosedconfiguratorType

Closedname

Closednamespace

ClosedresolveValue

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.