[
https://issues.apache.org/jira/browse/CAMEL-22431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-22431.
---------------------------------
Resolution: Fixed
> camel-once - A component for development to trigger only once
> -------------------------------------------------------------
>
> Key: CAMEL-22431
> URL: https://issues.apache.org/jira/browse/CAMEL-22431
> Project: Camel
> Issue Type: New Feature
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.17.0
>
>
> During development you may want to trigger only once, and then you use timer
> with repeat count = 1, but we can have a once component (or some better name)
> And this component can be made to hardcode message body / headers / variables
> etc as endpoint options so you can do this all quickly.
> {code:java}
> from:
> uri: once
> parameters:
> body: file:data.json
> header.foo: 123
> header.bar: 456
> variable.xxx: beer {code}
> Or make header and variables a single option with values seperated by comma
> {code:java}
> headers: "foo=123,bar=456"{code}
> {code:java}
> variables: "xxx=beer,yyy=cheese"{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)