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

Do not auto assign node ids to EIPs

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • 1.1.32
    • 1.1
    • Camel Editor
    • None

    Description

      I am following the tutorial.
      http://fusesource.com/docs/ide/camel/1.0/tutorials/tutorials.html

      I am at chapter 3, doing the CBR example.

      The choice, when and otherwise EIPs have auto assigned ids in the properties panel.

      • choice1
      • when1
      • otherwise1

      We should try to avoid auto assigning ids, as it just makes the XML more verbose and don't add value for the end user.
      Having id's only makes value when the end user assign a custom id, which makes sense for t he end user.

       <camelContext xmlns="http://camel.apache.org/schema/spring" trace="true">
          <route id="myRoute">
              <from uri="file:src/data?noop=true"/>
              <choice id="choice1">
                  <when id="when1">
                      <language language="xpath">/person/city = 'london'</language>
                      <to uri="file:target/messages/uk"/>
                  </when>
                  <otherwise id="otherwise1">
                      <to uri="file:target/messages/others"/>
                  </otherwise>
              </choice>
          </route>
      </camelContext>
      

      Notice we do not auto assign ids for the <from> and <to>

      Attachments

        Activity

          People

            jastrachan_jira James Strachan (Inactive)
            cibsen@redhat.com Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: