chunk template action Chunk Template Action

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Apply a Chunk Template.

The template property needs to be encoded in base64, so when you pass it as parameter, don’t forget to encode it.

Configuration Options

The following table summarizes the configuration options available for the chunk-template-action Kamelet:

Property Name Description Type Default Example

template

Template

Required The inline template.

binary

Dependencies

At runtime, the chunk-template-action Kamelet relies upon the presence of the following dependencies:

  • camel:chunk

  • camel:kamelet

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:timer-source"
      parameters:
        period: 10000
        message: 'test'
      steps:
        - to:
            uri: "kamelet:chunk-template-action"
            parameters:
            .
            .
            .
        - to:
            uri: "kamelet:log-sink"

You can now run it directly through the following command

camel run route.yaml