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 2022/01/07 13:36:13 UTC

[camel-kamelets] 02/02: Extract Field Action: Make it possible to set if the extracted field should be in the body or in a particular header

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch extract-action
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit cb37a54fa8c6ef6c51e40e1daa33f419374c54e3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jan 7 14:35:19 2022 +0100

    Extract Field Action: Make it possible to set if the extracted field should be in the body or in a particular header
---
 .../resources/kamelets/extract-field-action.kamelet.yaml    | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/extract-field-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/extract-field-action.kamelet.yaml
index 09d3c82..33d4e23 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/extract-field-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/extract-field-action.kamelet.yaml
@@ -29,13 +29,22 @@ metadata:
 spec:
   definition:
     title: "Extract Field Action"
-    description: "Extract a field from the body"
+    description: |-
+      Extract a field from the message body.
+
+      The extract field action expected an application/json content type. 
+
+      The field parameter allows to specify which field of the json the user wants to extract. By default the message body will be overriden with the extracted field.
+
+      The optional parameter headerOutput allows the user to specify wheter the extracted field should be stored in a message header named 'CamelKameletsExtractFieldName', leaving the message body untouched.
+
+      The headerOutput is particulary useful in case you would like to reuse an extracted field as parameters for another header, for example.
     required:
       - field
     properties:
       field:
         title: Field
-        description: The name of the field to be added
+        description: The name of the field to extract
         type: string
       headerOutput:
         title: Header Output