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

camel-yaml-dsl - Unification of DSL (Choice When clause)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • camel-yaml-dsl
    • None
    • Unknown

    Description

      All DSLs in steps array start with DSL name field, ex: filter and to

      steps:    
          - filter:  
               simple: "${body}"
               steps: 
                  - to: "mock:filter"
          - to: "mock:result"
      

      but in when array WhenDefinition steps: simple and expression

      when: 
          - simple: "${body.size()} == 1"
            steps: 
                - to: "log:when-a"
          - expression: 
              simple: "${body.size()} == 2"
            steps: 
                - to: "log:when-b"
      

      Could we unified YAML DSL for arrays of Definitions? Ex.:

      when: 
          - when: 
                expression: 
                    simple: "${body.size()} == 2"
                steps: 
                    - to: "log:when-a"
          - when: 
                expression: 
                    simple: "${body.size()} == 2"
                steps: 
                    - to: "log:when-b"
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            marat.gubaidullin@gmail.com Marat Gubaidullin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: