Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
camel-events-support-2.0.1
-
None
Description
If configured, the route for persistent events is called, but does not process any events:
<route> <from uri="hippoevent:?_persisted=true&_channelName=mylistener&category=workflow&action=publish,depublish" /> <to uri="direct:execute-reaction" /> </route>
This is due to the fact that
org.onehippo.forge.camel.component.hippo.HippoEventConsumer#isConsumable
checks ALL properties of the HippoEventEndpoint against the properties of the endpoint, including the _persisted and _channelName properties. As they both have non-empty values in the route configuration but the event does not have these properties, the event is deemed unprocessable.
I would suggesst to exclude underscore prefixed Endpoint properties (such as _persisted and _channelName) from being checked in the isConsumable method.
All the best,
Felix