Application DesignimportData Business Rule Component

An Import Data business rule component allows you to convert a string of data from CSV or XML format to an equivalent structure of data map entries for use in Loftware Enterprise SP.

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

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

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

 

<!-- Import 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 name of the data map entry containing the data to be converted. -->

<sourceDataRef>data_map_entry</sourceDataRef>

 

<!-- Required. The format of the source data. This value is not case sensitive. -->

<dataFormat>CSV|XML</dataFormat>

 

<!-- If dataFormat is CSV, whether the source data includes a header row. If false, then COLUMN1, COLUMN2, and so on, are used as the names of the columns in the converted data. The default value is true. -->

<hasHeaderRow>true|false</hasHeaderRow>

 

<!-- If dataFormat is CSV, the character optionally used to enclose the data of one cell in the source data. The default value is a double quotation mark ("). -->

<textQualifier>character</textQualifier>

 

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

<targetDataRef>namespace</targetDataRef>

</importData>

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.