Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-318

Content Based Router EIP - When should only support one output

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • Minor
    • 7.1.0
    • None
    • None
    • None

    Description

      See screenshot.

      I added that last when, and from it I dragged output to all the existing nodes in the UI that it would allow me.
      IMHO it should only allow one output, as most of the other EIPs does.

      The generated source looks like

       <camelContext xmlns="http://camel.apache.org/schema/spring">
          <package>foo</package>
          <route>
              <from uri="file:src/data?noop=true"/>
              <choice>
                  <when>
                      <xpath>/person/city = 'London'</xpath>
                      <log message="UK message"/>
                      <to uri="file:target/messages/uk"/>
                  </when>
                  <when>
                      <language language="simple">header.type == 'gold'</language>
                      <to uri="file:target/gold"/>
                      <log message="Other message"/>
                      <to uri="file:target/messages/others"/>
                      <log message="UK message"/>
                      <to uri="file:target/messages/uk"/>
                      <to uri="file:target/messages/others"/>
                      <to uri="file:target/messages/uk"/>
                  </when>
                  <otherwise>
                      <log message="Other message"/>
                      <to uri="file:target/messages/others"/>
                  </otherwise>
              </choice>
          </route>
      </camelContext>
      

      Attachments

        Activity

          People

            lheinema@redhat.com Lars Heinemann
            cibsen@redhat.com Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: