Camel
  1. Camel
  2. CAMEL-4995

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

    Details

    • Type: Bug Bug
    • Status: In Progress
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.8.4
    • Fix Version/s: None
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      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.

        Activity

        Hadrian Zbarcea created issue -
        Hadrian Zbarcea made changes -
        Field Original Value New Value
        Assignee Hadrian Zbarcea [ hadrian ]
        Hadrian Zbarcea made changes -
        Status Open [ 1 ] In Progress [ 3 ]

          People

          • Assignee:
            Hadrian Zbarcea
            Reporter:
            Hadrian Zbarcea
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development