You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Marat Gubaidullin (Jira)" <ji...@apache.org> on 2021/12/08 18:03:00 UTC

[jira] [Updated] (CAMEL-17304) camel-yaml-dsl: consistency of from

     [ https://issues.apache.org/jira/browse/CAMEL-17304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marat Gubaidullin updated CAMEL-17304:
--------------------------------------
    Summary: camel-yaml-dsl: consistency of from  (was: camel-yaml-dsl: from consistency)

> camel-yaml-dsl: consistency of from
> -----------------------------------
>
>                 Key: CAMEL-17304
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17304
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Marat Gubaidullin
>            Priority: Major
>         Attachments: Screen Shot 2021-12-08 at 12.47.35 PM.png, Screen Shot 2021-12-08 at 12.48.33 PM.png
>
>
> *from* as root element and *from* in *route* are implemented different
> 1. this one in correct 
> {code:java}
> - from:
>     uri: "timer:info"
>     steps:
>       - log: "message" 
> {code}
> 2. This one is *not correct*
> {code:java}
> - route:
>     id: demo-route
>     from:
>       uri: "timer:info"
>       steps:
>         - log: "message"
> {code}
> 3. This one is correct again
> {code:java}
> - route:
>     id: demo-route
>     from:
>       uri: "timer:info"
>     steps:
>       - log: "message"
> {code}
> This is because of 2 different *from* in camel-yaml-dsl.json (see attachment)
> From user experience it would be great to have only one implementation of from.
> I would recommend to have the same as all EIP DSL definitions when *steps* is a field inside element. Like in example 1 and 2 above.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)