String Template
String Template generates a dynamic string using Mustache template syntax.
It allows you to:
- Concatenate values
- Build JSON payloads
- Create formatted strings
- Conditionally include sections
All message parameters are automatically available inside the template as variables.
Parameters
TEMPLATE
Mustache template string used to generate the output.
All message parameters are available as variables using:
{{ParameterName}}
Conditional rendering is supported using:
{{#when Condition}}
...
{{/when}}
Required
OUTPUT_PARAM
Message parameter name that receives the rendered output.
Direction: Out
Default: OUTPUT
Execution Context Behavior
- Reads the template from TEMPLATE.
- Builds a context using all current message parameters.
- Compiles the Mustache template.
- Renders the template using message parameters as variables.
- Writes the rendered result to OUTPUT_PARAM.
Example Configuration
| Parameter | Value |
|---|---|
| TEMPLATE | text{"name":"{{NAME}}","age":"{{AGE}}"} |
| OUTPUT_PARAM | REQUEST_BODY |
Example Result
REQUEST_BODY = text{"name":"John","age":"30"}