Launching Message Transformations

A launch configuration in Eclipse describes all parameters required to start a program or run a test. Launch configurations are stored with an Eclipse workspace, but can also be shared with others.

Infinity Process Platform provides two launch configurations for testing and debugging message processing scenarios:

Transformations launch configurations rely on parsing launch configurations to create input messages for the transformation.

Parsing and Serialization Launch Configuration

The Parsing and Serialization Launch configuration Message Processing Test describes:

Launching a test based on this configuration parses the file content into a canonical DOM structure in memory and optionally serializes this DOM structure on the screen or in a file. For that serialization another serialization format than XML can be selected. This way serialization can be tested as well with this configuration.

To create a new launch configuration:

  1. In the main menu select Open Run Dialog.

  1. In the run dialog select Message Processing Test.
  2. Press the button Add button to add a new launch configuration:

  1. In the Message Processing Test Configuration pane enter the properties as described in the following section.

Message Processing Test Configuration

The following settings can be performed in the Message Processing Test Configuration pane:

Structured Data Selection

In the Structured Data Selection pane you can select the project and model where the structured data is stored and the structured data to be read as source.

Structured Data Selection
Figure: Enter Structured Data Selection.

Parsing

In the Parsing pane select the source message file and the source message format:

Parsing
Figure: Enter Source Message File and Format for Parsing.

Note
In case your process model is a consumer model and referring to structured data in a provider model, you need to import the related composite type manually. Export the composite type from the provider model as XSD file and then import it to the consumer model by using the Import Types option.

Serialization

You have to enable the Test Serialization option to be able to test the configuration. In the Target Message File field enter or browse to the message file, where you want your parsed message output to be stored. Select the format of the output message in the Target Message Format entry.

Serialization
Figure: Enter Target Message File and Format for Serialization.

In case you want to view your output message on the screen, enable the Screen Output checkbox. The output message is then displayed in the Console view, which you can open via the main menu entry Window > Show View > Console. In that case, the Target Message File entry will be disabled.

Enabled Screen Output
Figure: Enabled Screen Output

Validation

In the Validation part it is possible to choose the validation options to check field validation rules or message validation rules:

Validation
Figure: Choose Validation Options.

Transformation Launch Configuration

Based on message processing configurations, created beforehand, you can parse messages in the Message Transformation launcher. Therefore you have to create a new launch configuration, the Message Transformation Test configuration:

  1. In the main menu select Open Run Dialog.

  1. In the run dialog select Message Transformation Test.
  2. Press the button Add button to add a new launch configuration:

  1. In the Message Transformation Test Configuration pane enter the properties described in the following section.

Message Transformation Test Configuration

The following settings can be performed in the Message Transformation Test Configuration pane:

Transformation Selection

In the Transformation Selection pane you can enter the project name, a process model and the message transformation application:

Transformation Selection
Figure: Transformation Selection

To choose the model, select the Browse button. A dialog will open with a list of available models:

Open Resource
Figure: Select a Resource to open.

Input Messages

In the input messages part all available input message ids and according message types are displayed:

Input Messages
Figure: Input Messages

In the launch configuration id part, choose the configuration you want to use for the parsing from a list with previously created message processing configurations:

Provided Launch Configurations
Figure: Provided Launch Configurations