Boundary Error on Operation

Will a boundary error event catch issues within the Operations of a task?

I have a task that updates a process variable using by calling a RESTful web service via groovy.

If I cause this task to fail when testing it goes into a failed state rather than triggering the boundary error and following the error flow.

Do boundary errors only work for connectors and not operations?

Or does anyone know of another way to catch an error from the operations of a task?

You can easily try it by creating a process with an operation that throw an error and a catch error event on the same task.

I never tried this.