Marat Gubaidullin created CAMEL-17094:
-----------------------------------------
Summary: Unification of DSL (Choice When clause)
Key: CAMEL-17094
URL: https://issues.apache.org/jira/browse/CAMEL-17094
Project: Camel
Issue Type: Improvement
Reporter: Marat Gubaidullin
All DSLs in *steps* array start with DSL name field, ex: *filter* and *to*
{code:yaml}
steps:
- filter:
simple: "${body}"
steps:
- to: "mock:filter"
- to: "mock:result"
{code}
but in *when* array WhenDefinition steps: *simple* and *expression*
{code:yaml}
when:
- simple: "${body.size()} == 1"
steps:
- to: "log:when-a"
- expression:
simple: "${body.size()} == 2"
steps:
- to: "log:when-b"
{code}
Could we unified YAML DSL for arrays of Definitions? Ex.:
{code:yaml}
when:
- when:
expression:
simple: "${body.size()} == 2"
steps:
- to: "log:when-a"
- when:
expression:
simple: "${body.size()} == 2"
steps:
- to: "log:when-b"
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)