Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-320

Improve sorting logic of fallback transformers where multiple unrelated transformers are resolved for a given type

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 0.2
    • transformation
    • None

    Description

      At the moment, if unrelated fallback transformers are discovered (un-assignable types), the user gets an error and they need to manually add an explicit transformer to resolve. With Camel in the mix and all of its converters, the likelihood of hitting this situation goes up a lot and becomes a PITA.

      We can improve the sorting so as to take into account how far in the inheritance tree the incompatible types are from the target type, weighting in favor the type that is closer.

      Also... change from giving an error to a log (debug) when the sorting makes the types equidistant from the target type.

      Attachments

        Activity

          People

            tfennelly_jira Tom Fennelly (Inactive)
            tfennelly_jira Tom Fennelly (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: