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 2022/12/07 13:00:00 UTC

[jira] [Resolved] (CAMEL-18798) camel-core - Add prefixId to route model so generated IDs of the route is prefixed

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

Claus Ibsen resolved CAMEL-18798.
---------------------------------
    Resolution: Fixed

> camel-core - Add prefixId to route model so generated IDs of the route is prefixed
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-18798
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18798
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.20.0
>
>
> So you can do
> from("xxx").routeId("new-order").prefixId("xxx")
>    .to("aaa")
>    .to("bbb").id("order")
> from("xxx2").routeId("new-order").prefixId("zzz")
>    .to("aaa")
>    .to("bbb").id("order")
>    .to("ccc")
> Then every node in the routes are prefixed with "xxx" or "zzz". This allows to avoid problems with ID duplicates, and also group together IDs as the use the same prefix.
> The prefix is applied for
> - route id
> - explicit set id
> - auto generated ids
> This means every ID from the route is prefixed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)