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

Camel editor can't draw a route using a try catch finally

XMLWordPrintable

    • Hide

      1 Write a simple route with try catch finally blocks.
      http://camel.apache.org/try-catch-finally.html

      2 Go to graphical editor

      Show
      1 Write a simple route with try catch finally blocks. http://camel.apache.org/try-catch-finally.html 2 Go to graphical editor

      When I written a route with exception control with try /catch /finally blocks, and go back to camel editor, these blocks are not drawn. And when I go back to xml editor, the blocks has disappeared.

      Example:

      <route>
          <from uri="direct:start"/>
          <doTry>
              <process ref="processorFail"/>
              <to uri="mock:result"/>
              <doCatch>
                  <exception>java.io.IOException</exception>
                  <exception>java.lang.IllegalStateException</exception>
                  <onWhen>
                      <simple>${exception.message} contains 'Damn'</simple>
                  </onWhen>
                  <to uri="mock:catch"/>
              </doCatch>
              <doCatch>
                  <exception>org.apache.camel.CamelExchangeException</exception>
                  <to uri="mock:catchCamel"/>
              </doCatch>
              <doFinally>
                  <to uri="mock:finally"/>
              </doFinally>
          </doTry>
      </route>
      

            Unassigned Unassigned
            vcornejo_jira Victor Cornejo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: