Vladimir Konkov created CAMEL-20494:
---------------------------------------
Summary: 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
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())
{ [email protected] \\{ it.`in`.prepareQuery() }
[email protected] { jdbc
{ dataSourceName("default"); useHeadersAsParameters(true) } }
[email protected](body()) {
streaming(true) [email protected]
{ it.`in`.prepareInsertParams() }
[email protected] \{ 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)