Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am using Talend Open Studio for ESB v6.2.0 and Karaf 4.0.5.
Camel route (.kar) is as follows and is deployed in container/deploy
talend-camel floow ---> cDoTry --> cJavaDSLComponent (setHeader("X-Field").simple("${header.X-AnotherField}"))
cCatch (Exception.class) --> cJavaDSLComponent (setHeader("X-Field").contant("some value"))
cFinally --> flow continues
If the header.X-AnotherField exists, everything works fine. If the header does not exist, flow fails silently (no error or exception thrown) at doTry and does not continue.
Similar behaviour happens with fetching values to header via jsonpath. Replacing cJavaDSLComponent for cSetHeader component is same.
Is this intended behaviour, am I using the components wrong?