Project: talendesb
Issue TESB-3996: Routes and context for generated routes should have sensible values
Right now if we do the *camel:list-routes* we see following {code} karaf@trun> camel:list-routes Route Id Context Name Status [cMessagingEndpoint_1] [185-camel-2 ] [Started ] [cMessagingEndpoint_2] [185-camel-2 ] [Started ] [cMessagingEndpoint_3] [185-camel-2 ] [Started ] [cActiveMQ_1 ] [186-camel-4 ] [Started ] [cMessagingEndpoint_1] [186-camel-4 ] [Started ] {code} Names of the routes and contexts are not related to what user sees in Route Builder. We need to fix it, instead we should take following names: * Since we have one context per Route Builder route artifact we need to name context as Route artifact name + "-ctx", for example if Route in Route Builder called *Hasi* then context should have named *Hasi-ctx*. * Since we have multiple camel routes inside a single Route Builder route we have to name them according to the descriptive name visible in Studio, so that user should be able to change name of the first component in Studio and see same name in karat console. Example: {code} from(uriMap.get("Read_Input")).routeId("cFile_1")	.setHeader("aaa").constant("direct:a,direct:b")	.id("cSetHeader_1").recipientList().header(	"aaa").ignoreInvalidEndpoints()	.parallelProcessing().id("cRecipientList_1"); {code} Should be: {code} from(uriMap.get("Read_Input")).routeId("Read_Input")	.setHeader("aaa").constant("direct:a,direct:b")	.id("cSetHeader_1").recipientList().header(	"aaa").ignoreInvalidEndpoints()	.parallelProcessing().id("cRecipientList_1"); {code}
Story points: 1