From ba03d9f931160c1416be5ce21e5d89974e27f2ef Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Mon, 10 Jan 2022 14:08:09 +0100 Subject: [PATCH] Extract Field Action: Add the possibility of setting the header name in case of headerOutput is true --- kamelets/extract-field-action.kamelet.yaml | 5 ++++- .../resources/kamelets/extract-field-action.kamelet.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/kamelets/extract-field-action.kamelet.yaml b/kamelets/extract-field-action.kamelet.yaml index f5e2038a1..32e83b8ae 100644 --- a/kamelets/extract-field-action.kamelet.yaml +++ b/kamelets/extract-field-action.kamelet.yaml @@ -38,7 +38,10 @@ spec: 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. + The optional parameter headerOutputName allows the user to specify a custom header name instead of the default 'CamelKameletsExtractFieldName'. This parameter must be used in conjunction with headerOutput. + If no headerOutputName parameter will be provided, the default 'CamelKameletsExtractFieldName' will be used. + + The headerOutput/headerOutputName parameters are particulary useful in case you would like to reuse an extracted field as parameter for another header, for example. required: - field properties: 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 f5e2038a1..32e83b8ae 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 @@ -38,7 +38,10 @@ spec: 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. + The optional parameter headerOutputName allows the user to specify a custom header name instead of the default 'CamelKameletsExtractFieldName'. This parameter must be used in conjunction with headerOutput. + If no headerOutputName parameter will be provided, the default 'CamelKameletsExtractFieldName' will be used. + + The headerOutput/headerOutputName parameters are particulary useful in case you would like to reuse an extracted field as parameter for another header, for example. required: - field properties: