Modeling Guide

ToMessage Converter

The ToMessage Converter operator converts the input to a Pipeline Modeler message. The input can be either a string representation of the entire message or a data of any type that will be placed in the body of a new message.

Configuration Parameters

None

Input

Input

Type

Description

inbody

any.*

When any data arrives in this port, a new message is created with the received data placed in its body. The attributes and encoding fields are left empty.

instring

string

The input string that represents the entire messsage. For example, the string: {"message.attributes.encoding": "jpeg", "otherField": 3}this part is the body' will be converted to a message where the body has the string "this part is the body", the attributes has the map {"otherField": 3}, and the bodyEncoding has the string "jpeg". Note that the body will always become a string when this port is used.

Output

Output

Type

Description

out

message

The resulting Pipeline Modeler message derived from the input.