Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2808

XPath Router. Conditional routing based on the value of the xpath expression.

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: General Backlog
    • Component/s: XML
    • Labels:
      None

      Description

      As a developer I would like to be able to configure XPath Router to do conditional routing based on the XPath value.

      For example, when having a message

      <passener>
        <age>2</age>
      </passenger>
      

      a router should be able to route the message to one of the configured channels based on the evaluated expression, e.g.

      <xpath-router id="passengerRouter" input-channel="passengerChannel">
          <recipient channel="infantChannel" expression="/passenger/age le 1"/>
          <recipient channel="adultChannel" expression="/passenger/age gt 12"/>
      </xpath-router>
      

        Attachments

          Activity

            People

            • Assignee:
              abilan Artem Bilan
              Reporter:
              opatopa Janis Kazakovs
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: