You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/08/11 10:41:44 UTC
[GitHub] [camel-kamelets] hguerrero opened a new issue #463: insert-field-action has no documentation on how to set headers/fields as value
hguerrero opened a new issue #463:
URL: https://github.com/apache/camel-kamelets/issues/463
When using the insert-field-action I want to use a header value like the timestamp as the value for the newly inserted field.
Example:
```js
{"message":"hola mundo"}
```
I would expect to have something like this:
```yaml
- properties:
field: ts
value: ${timestamp}
ref:
apiVersion: camel.apache.org/v1alpha1
kind: Kamelet
name: insert-field-action
```
producing the following message:
```js
{"message":"hola mundo","ts":1628678472}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-kamelets] oscerd commented on issue #463: insert-field-action has no documentation on how to set headers/fields as value
Posted by GitBox <gi...@apache.org>.
oscerd commented on issue #463:
URL: https://github.com/apache/camel-kamelets/issues/463#issuecomment-896714649
It doesn't work in the same way as Kafka or Kafka connect. I'll see what could be done, but this is not critical
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-kamelets] oscerd closed issue #463: insert-field-action has no documentation on how to set headers/fields as value
Posted by GitBox <gi...@apache.org>.
oscerd closed issue #463:
URL: https://github.com/apache/camel-kamelets/issues/463
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-kamelets] oscerd commented on issue #463: insert-field-action has no documentation on how to set headers/fields as value
Posted by GitBox <gi...@apache.org>.
oscerd commented on issue #463:
URL: https://github.com/apache/camel-kamelets/issues/463#issuecomment-903621776
By the way, what do you mean by header, a kafka header or a camel header? I don't think this is feasible in all the cases.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-kamelets] hguerrero commented on issue #463: insert-field-action has no documentation on how to set headers/fields as value
Posted by GitBox <gi...@apache.org>.
hguerrero commented on issue #463:
URL: https://github.com/apache/camel-kamelets/issues/463#issuecomment-903837312
@oscerd Camel Headers, or basically using any of the languages we can use with camel, like `simple` for example to get more dynamic values instead of just a contant.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org