[
https://issues.apache.org/jira/browse/CAMEL-20894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-20894:
--------------------------------
Fix Version/s: 4.7.0
> EventNotifier: Not all steps are triggered as events
> ----------------------------------------------------
>
> Key: CAMEL-20894
> URL: https://issues.apache.org/jira/browse/CAMEL-20894
> Project: Camel
> Issue Type: Wish
> Components: came-core
> Affects Versions: 4.6.0
> Reporter: Raymond
> Priority: Minor
> Fix For: 4.7.0
>
> Attachments: main-xml.zip
>
>
> I like to get all events of the step eip with the EventNotifier. However it
> seems that not all steps trigger events.
> To demonstrate this I created two integrations:
> *Integration: Test1*
> {code:java}
> <routes>
> <route id="Test1_1">
> <from
> uri="timer://foo?fixedRate=true&period=10000&repeatCount=1"/>
> <setBody>
> <constant>test1</constant>
> </setBody>
> <step id="Test1_Step1">
> <to uri="mock:x"/>
> <to uri="direct:ID_2"/>
> </step>
> </route>
> <route id="Test1_2">
> <from uri="direct:ID_2"/>
> <step id="Test1_Step2">
> <to uri="mock:x"/>
> <to uri="direct:ID_3"/>
> </step>
> </route>
> <route id="Test1_3">
> <from uri="direct:ID_3"/>
> <step id="Test1_Step3">
> <to uri="mock:x"/>
> <to uri="log:myLog"/>
> </step>
> </route>
> </routes> {code}
> *Integration: Test2*
> {code:java}
> <routes>
> <route id="Test2_1">
> <from
> uri="timer://foo?fixedRate=true&period=10000&repeatCount=1"/>
> <setBody>
> <constant>test2</constant>
> </setBody>
> <step id="Test2_Step1">
> <to uri="direct:ID_2_2"/>
> </step>
> </route>
> <route id="Test2_2">
> <from uri="direct:ID_2_2"/>
> <step id="Test2_Step2">
> <to uri="direct:ID_3_2"/>
> </step>
> </route>
> <route id="Test2_3">
> <from uri="direct:ID_3_2"/>
> <step id="Test2_Step3">
> <to uri="log:myLog2"/>
> </step>
> </route>
> </routes> {code}
> For the first integration, every time the step is reached, I get an event.
> For the second integration, the mock endpoints are removed, and those steps
> don't trigger an event.
> I would like to that every step triggers an event, such as:
> {code:java}
> <step id="foo">
> <to uri="log:myLog"/>
> </step>{code}
>
> Though maybe out of scope for this issue, it would even be practical to do
> something like this:
> {code:java}
> <step id="foo"/>{code}
> This step doesn't have any child nodes, but could be used to catch events at
> various points in a route.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)