Skip to main content
Version: 4.17.2

Velocity component

The Velocity component uses Apache Velocity, a Java-based template engine that allows you to create templates for your message bodies. It provides a language to reference objects and variables defined in the current context.

The SetBody component is the successor to the Velocity component. Use the SetBody component to build a body in your flow, and use the Velocity component purely for its templating capabilities.

no simple expressions

You cannot use Simple expressions in the Velocity template, use the SetBody component instead.

Configuration

The Velocity component has the following basic configuration options:

Template

The Velocity template that should be evaluated for each message passing through the component.

syntax in velocity

Be aware that the Velocity templating languages interprets certain characters as syntax.

For instance, combinations of # and * symbols are considered comments or comment sections in the Velocity template language. For instance, an XML or JSON body will be truncated after #*.

Use a Replace component before the Velocity component if you need to replace certain character (combinations).

Last update on Nov 26, 2024