Application DesignexportData Business Rule Component

An Export Data business rule component allows you to convert data in a structure of data map entries in Loftware Enterprise SP to an equivalent string of text or binary data . This data can be used in other applications that accept data in CSV or XML format.

Tip: You can use an Import Data business rule component to convert a string of data from CSV or XML format to a namespace containing a structure of data map entries.

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

ClosedAbout the syntax documentation

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

 

<!-- Export Data functionality -->

<!-- The value for each of the following can be a static value or the fully-qualified name of a data map entry containing the value. -->

 

<!-- Required. The fully-qualified namespace under which the data to be converted is stored in the data map. -->

<sourceDataRef>namespace</sourceDataRef>

 

<!-- Required. The format to which the data is being converted. This value is not case sensitive. -->

<dataFormat>CSV|XML</dataFormat>

 

<!-- The type of file format to which data is being converted. If STRING, data is inserted as text. If BINARY, data is base 64 encoded. This value is not case sensitive. The default value is STRING. -->

<dataType>STRING|BINARY</dataType>

 

<!-- Required. The fully-qualified data map entry for which the value is the converted data. -->

<targetDataRef>data_map_entry</targetDataRef>

</exportData>

Syntax Tips

Additional information is available about the following items.

Closedaction

Closedalias

ClosedconfiguratorType

CloseddataType or valueType

ClosedmergePolicy

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.