Put case in fail state

Hi,
I have a rest connector invoking a web service whith the clause :
“If connector fails … Put in fail state”.

When the service returns 400 (Bad Request), the case remains “Started”.
I would like to fail the entire workflow.

I can I do that ?
Is there a way foreseen by the ide … or I must fail the case by code (groovyscript) ?

Thanks

Hi @bluca!

Since a 400 (Bad Request) is not really considered per se as a failure coming from the connector itself, you have to define it yourself. This is mainly to give you as much flexibility as possible to be able to define and handle errors according to your use case.
For example in another use case you could be interested in taking an alternative path in case of error, such as I show on this video: https://youtu.be/kLs--OlYwaI?t=137 where I use the clause “If connector fails…Throw error event”

Hope this helps.
Cheers!
-Thalía