Skip to main content Skip to complementary content

cJSLT Standard properties

These properties are used to configure cJSLT running in the Standard Job framework.

The Standard cJSLT component belongs to the Transformation family.

Basic settings

Type

Select the way the JSLT template will be set.

  • Repository: The JSLT template will be selected from an existing repository resource file.

  • File Path: The JSLT template will be selected from the local file system.

  • Built-In: The JSLT template will be entered directly within the component.

Resource / Version

This field appears when Repository is selected from the Type list. Click [...] and select the resource file containing the JSLT template. Select the version of the resource if more than one version of the resource is available.

Resource URI

This field appears when File Path is selected from the Type list. Enter the path to the JSLT template file in your local file system.

Cache Resource

This option appears when Repository or File Path is selected from the Type list. Select this check box to cache the resource instead of reloading it for each message.

Language

This option appears when Built-In is selected from the Type list.

Select the language of the expression you use from None, Bean, Constant, CorrelationID, EL, Groovy, Header, JoSQL, JSonPath, JXPath, MVEL, OGNL, PHP, Property, Python, Ruby, Simple, SpEL, SQL, XPath, and XQuery.

Select Bean if you want to call a predefined Java Bean to return the JSLT template.

Code Style

This option appears when Built-In is selected from the Type list. Select from:
  • Java: Java code can be used within JSLT template. Quotes needs to be escaped, for example, \".
  • Native: No Java code can be used in JSLT template. But quotes do not need be escaped, making the JSLT template more readable.

JSLT template

This option appears when Built-In is selected from the Type list. Enter the JSLT template to be applied on incoming JSON messages.

For more information about how to use the languages to create an expression, see the site http://camel.apache.org/languages.html.

Pretty Print

Select this check box to format and print the output JSON message in a readable way. If you clear this check box, you will have the output in one row.

Advanced settings

URI Options

Set the optional arguments in the corresponding table. Click [+] as many times as required to add arguments to the table. Then click the corresponding value field and enter a value. See the site https://camel.apache.org/components/3.21.x/jslt-component.html for available URI options.

Usage

Usage rule

cJSLT can be a middle or end component in a Route.

Limitation

The input content needs to be in JSON format.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!