User-Configured Header Transforms

Generally, the consumed message’s headers are propagated through the connector to the output message. If you want to transform the headers, then you can do so using Spring Expression Language (SpEL) expressions:

# <workflow-id> : The workflow ID ([0-19])
# <header> : The key for the outbound header
# <expression> : A SpEL expression which has "headers" as parameters
 
solace.connector.workflows.<workflow-id>.transform-headers.expressions.<header>=<expression>

Example 1: To create a new header, new_header, for workflow 0 that is derived from the headers header1 and header2 (in this case, concatenating the header values with the string "abc"), use the following expression:

solace.connector.workflows.0.transform-headers.expressions.new_header="T(String).format('%s/abc/%s', headers.header1, headers.header2)"

Example 2: To remove the header delete_me for workflow 0, set the header transform expression to null:

solace.connector.workflows.0.transform-headers.expressions.delete_me="null"

For more information about SpEL expressions, see Spring Expression Language (SpEL).