You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/10/17 07:13:00 UTC
[jira] [Updated] (CAMEL-17094) camel-yaml-dsl - Unification of DSL
(Choice When clause)
[ https://issues.apache.org/jira/browse/CAMEL-17094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-17094:
--------------------------------
Summary: camel-yaml-dsl - Unification of DSL (Choice When clause) (was: Unification of DSL (Choice When clause))
> camel-yaml-dsl - 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
> Priority: Major
>
> 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)