You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/08/30 12:33:04 UTC
[camel-kamelets] 02/07: Added Xj Template Kamelet Action
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch xj-template
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit c59ad1461528aa13ea329fa4bc56821dc98f4365
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Aug 30 14:30:49 2021 +0200
Added Xj Template Kamelet Action
---
.../kamelets/xj-template-action.kamelet.yaml | 42 ++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/xj-template-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/xj-template-action.kamelet.yaml
new file mode 100644
index 0000000..23a6e61
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/xj-template-action.kamelet.yaml
@@ -0,0 +1,42 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: xj-template-action
+ annotations:
+ camel.apache.org/kamelet.support.level: "Preview"
+ camel.apache.org/catalog.version: "main-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "Actions"
+ labels:
+ camel.apache.org/kamelet.type: "action"
+spec:
+ definition:
+ title: "XJ Template Action"
+ description: |-
+ Apply the XJ Identity Transformation to transform JSON to XML and XML to JSON.
+ required:
+ - direction
+ - template
+ type: object
+ properties:
+ direction:
+ title: Direction
+ description: The transform direction, possible values are XML2JSON or JSON2XML
+ type: String
+ template:
+ title: Template
+ description: The inline template to apply a transformation through template.
+ type: binary
+ dependencies:
+ - "camel:xj"
+ - "camel:kamelet"
+ flow:
+ from:
+ uri: "kamelet:source"
+ steps:
+ - to:
+ uri: "xj:"
+ parameters:
+ resourceUri: "base64:{{template}}"
+ transformDirection: "{{direction}}"