Application DesignmapScript Business Rule Component

A Data Map Entry Script is a business rule component that allows you to provide read-only data map entries. A Data Map Entry Script also returns a value that is added to the data map and that can be referenced by using the fully-qualified name of the Data Map Entry Script. The capabilities of a Data Map Entry Script are comparable to those of a Formula data source.

The following is the syntax for a Data Map Entry Script.

Important! Patterns for character-level formatting and for values returned from data map entries are governed by the Java syntax for regular expressions.

Escape sequences are required for the following characters. Precede the character with a double backslash.
< > ( ) [ ] { } | ^ - = + * $ ! ? . \

By default, literal text within a pattern is case sensitive. You can make a pattern case insensitive by beginning it with the special construct (?i). If you configure both patterns and ranges in a Character-Level format source, ranges are resolved before patterns.

For more information about Java syntax for regular expressions, see "Scripting, Java, and XML" in External Links.

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

<mapScript name="This_component" namespace="Parent_of_component"
customScript="true|false"
engineType="rhino|nashorn"

dataType="STRING|INTEGER|BOOLEAN|NUMBER|BINARY|DATE"
mergePolicy="MERGE_ALL|MERGE_NONE|MERGE_FROM_CHILD|MERGE_TO_PARENT"
action="OVERRIDE|NOT_EXISTS|DELETE|APPEND|PREPEND"

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>

 

<!-- Data Map Script functionality -->

<!-- Enter JavaScript designed to make changes to the data map. -->

<script>JavaScript</script>

</mapScript>

Syntax Tips

Additional information is available about the following items.

Closedaction

Closedalias

ClosedconfiguratorType

ClosedcustomScript

CloseddataType or valueType

ClosedengineType

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.