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 2023/05/24 07:57:15 UTC

[camel-kamelets] 01/08: Bean: Use properties instead of property with key and value - Extract Field Action

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

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

commit a510cb5b067d3f548031f4d9956d6a8bed5d961c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed May 24 09:29:38 2023 +0200

    Bean: Use properties instead of property with key and value - Extract Field Action
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/extract-field-action.kamelet.yaml | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/kamelets/extract-field-action.kamelet.yaml b/kamelets/extract-field-action.kamelet.yaml
index d8a77278..12458953 100644
--- a/kamelets/extract-field-action.kamelet.yaml
+++ b/kamelets/extract-field-action.kamelet.yaml
@@ -88,19 +88,12 @@ spec:
     beans:
       - name: extractField
         type: "#class:org.apache.camel.kamelets.utils.transform.ExtractField"
-        property:
-          - key: field
-            value: '{{field}}'
-          - key: headerOutput
-            value: '{{headerOutput}}'
-          - key: headerOutput
-            value: '{{headerOutput}}'
-          - key: headerOutputName
-            value: '{{headerOutputName}}'
-          - key: strictHeaderCheck
-            value: '{{strictHeaderCheck}}'
-          - key: trimField
-            value: '{{trimField}}'
+        properties:
+          field: '{{field}}'
+          headerOutput: '{{headerOutput}}'
+          headerOutputName: '{{headerOutputName}}'
+          strictHeaderCheck: '{{strictHeaderCheck}}'
+          trimField: '{{trimField}}'
     from:
       uri: kamelet:source
       steps: