Uploaded image for project: 'Bloomreach Forge'
  1. Bloomreach Forge
  2. FORGE-307

Camel event forge Plugin Persistent listener does not process any events

    XMLWordPrintable

Details

    Description

      If configured, the route for persistent events is called, but does not process any events:

       

      <route>  
          <from uri="hippoevent:?_persisted=true&amp;_channelName=mylistener&amp;category=workflow&amp;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

       

      Attachments

        Activity

          People

            wko Woonsan Ko (Inactive)
            fpieper Felix Pieper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: