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

kotlin-api: inconvenient split, loop, threads DSL syntax

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • dsl
    • None
    • Unknown

    Description

      Scope of split and similar pipeline containing DSLs (excluding multicast) do allow to build pipeline using steps DSL. This resulting in:

      steps{
      
      log \{ loggingLevel(INFO); message("started") }
      
      split(body()){
      
        this@steps.process \{ it.`in`.prepareQuery() }
      
        this@steps.to \{ jdbc{ dataSourceName("default"); useHeadersAsParameters(true) } }
        this@steps.split(body()) {
      
          streaming(true) this@steps.process \{ it.`in`.prepareInsertParams() }
          this@steps.to \{ jdbc { dataSourceName("default"); useHeadersAsParameters(true) }
      
        }
      }
      }
      log \{ loggingLevel(INFO); message("completed") }
      }
       
      

       

      It is good to have special section for processing pipeline like outputs in multicast DSL.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vladimir_fx Vladimir Konkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: