Application DesignComponent Blocks

You can use a component block to add or change data in the data map, to incorporate conditional logic, or to implement branching. The following tables summarize the purpose of each type of component block that you can use when creating a business rule in the Configurator view in Loftware Enterprise™ SP.

Tip: Before you can add a component block to a business rule, you must create a component set by specifying a trigger that controls when component blocks in the component set are run.

Data Map Blocks

Block Type Purpose

Update

Set the value of a print job property or a data map entryClosed A name (key) and value pair in the data map for a job. to a static value or a dynamic value.

Prepend/Append

Concatenate text onto the beginning or the end of the value of a data map entry.

Delete

Remove a print job property or a data map entry from the data map.

Conditional

If the result of a logical expression combining multiple conditions is true, set the value of a print job property or a data map entry. You can combine conditions using logical operations such as AND or OR.

Conditional List

If the value of a print job property or a data map entry is equal to one of a list of values, set the value of a print job property or a data map entry.

Data Service Blocks

Block Type Purpose

Get First Row

Retrieve the first row in the result of a query of a JDBC data service and add the data to the data map.

Repeat for All Rows

Run specified component blocks for each row in the result of a query of a JDBC data service.

Print Blocks

Block Type Purpose

Print

Generate a print job using the specified process.

Other Blocks

Block Type Purpose

Format Date/Time

Format the value of a data map entry as a date or time.

Run Data Map Script

Make changes to the data map by using JavaScript.

Run Another Component Set

Run another component set in this business rule, regardless of whether the associated event has occurred.

Run Another Business Rule

Run a component set from another business rule, regardless of whether the associated event has occurred.

Other Block: Add Another Business Rule

Add a copy of a component set from another business rule into the selected component set of this business rule.

Configure Test Data

Add sample data to the data map for use when designing and testing the business rule.

Log Data

Write a message to the User Event Log.

Advanced Blocks

Block Type Purpose

Conditional True/False

Run different component blocks depending on whether the value of a print job property or a data map entry is equivalent to a specified value.

Fixed Repeat

Run selected component blocks a specified number of times.

Do-While Repeat

Repeat an action as long as specified conditions continue to be true or the Max Iterations have been run.

Note: If you require that a business rule have additional capabilities or flexibility beyond what is possible by using Configurator, a programmer can use XML to develop a business rule. For more information, see Implementing Business Logic.

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.