I'm new to Apache Camel and I'm starting to learn it.
I have a problem with the following route:
from()
.unmarshal()
.filter().javaScript()
.setHeader()
.convertBodyTo()
.to();
When I run it, the filter() gets applied; if filter() returns true, everything is ok; if filter() returns false, the setHeader() and convertTo() steps are bypassed but the to() step is not.
I'm using Camel 2.11.1 in a Java SE application.
Regards, Alessandro