Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-4995

Wrong type returned in DSL for NoOutputExpressionNode(s) such as DynamicRouterDefinition

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.4
    • 3.0.0
    • camel-core
    • None
    • Advanced

    Description

      In ProcessorDefinition camel returns the NoOutputExpressionNode (as opposed to its parent) while constructing the AST.

      The problem can only be noticed when such nodes are used within something like a ChoiceDefinition, in which case the parent (choice) is never returned, so there cannot be another when after something like dynamicRouter is used in a 'when'.

      A fix is relatively easy for the Expression flavor of the DSL and I will commit a fix shortly, but the ExpressionClause flavor is a bit trickier. I am looking into a solution for that that does not require an api change.

      Attachments

        Activity

          People

            hadrian Hadrian Zbarcea
            hadrian Hadrian Zbarcea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: