Hi Anand,
we have error handling implemented on a very narrow feature set, i.e.
for integrations of API provider type, i.e. when we handle what
response is given to the client for specific statuses and within the
SQL connector where we handle and emit Syndesis specific errors, a
requirement for error handling.
So in your case we don't have this supported. In fact the Camel route
will error out before reaching the conditional step and the
conditional step won't be invoked at all.
As a side note, and more pertaining to your question, the expression
needs to be in a syntax supported by Camel. Look at the reference
here:
https://camel.apache.org/components/latest/languages/simple-language.html#top
To get this working you'd need to change the service you're invoking
to return a 2xx HTTP status even for errors and have the body contain
something like a JSON with "status" property that you can use in an
expression for branching.
zoran
> --
> You received this message because you are subscribed to the Google Groups "Syndesis" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
syndesis+u...@googlegroups.com.
> To view this discussion on the web, visit
https://groups.google.com/d/msgid/syndesis/23c3c0ce-06a2-4cd7-a834-763ca1f300den%40googlegroups.com.
--
Zoran Regvart