Claus Ibsen created CAMEL-27621:
-----------------------------------
Summary: camel-scheduler: doc page says timer exchange properties
are set without includeMetadata
Key: CAMEL-27621
URL: https://issues.apache.org/jira/browse/CAMEL-27621
Project: Camel
Issue Type: Bug
Components: camel-scheduler
Reporter: Claus Ibsen
Fix For: 4.24.0
Found while improving the option descriptions of camel-scheduler for
CAMEL-23832 (PR https://github.com/apache/camel/pull/30960).
These are separate problems of the component; the descriptions PR only
documents the current behavior.
h4. 1. Doc page says the timer exchange properties are always set
The section "Exchange Properties" of {{scheduler-component.adoc}} says that
when the scheduler fires, it adds the {{Exchange.TIMER_NAME}} and
{{Exchange.TIMER_FIRED_TIME}} properties to the exchange.
{{SchedulerConsumer.sendTimerExchange()}} sets them, and the
{{CamelMessageTimestamp}} header, only when {{includeMetadata}} is true, and
{{includeMetadata}} is false by default. A user who follows the doc page and
reads {{CamelTimerName}} or {{CamelTimerFiredTime}} gets null.
Proposed change: say in that section that the properties are only set with
{{includeMetadata=true}}, and list the {{CamelMessageTimestamp}} header there
as well.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)