You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Vladimir Konkov (Jira)" <ji...@apache.org> on 2024/02/29 13:06:00 UTC
[jira] [Updated] (CAMEL-20494) kotlin-api: inconvenient split, loop, threads DSL syntax
[ https://issues.apache.org/jira/browse/CAMEL-20494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Konkov updated CAMEL-20494:
------------------------------------
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.
was:
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.
> kotlin-api: inconvenient split, loop, threads DSL syntax
> --------------------------------------------------------
>
> Key: CAMEL-20494
> URL: https://issues.apache.org/jira/browse/CAMEL-20494
> Project: Camel
> Issue Type: Improvement
> Components: dsl
> Reporter: Vladimir Konkov
> Priority: Major
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)