Catching Technical Errors from a Task

Hi Guys,

I am quite new to Camunda.I am trying to create a project in which it will throw the Business Errors from the Task Listener and catch it from the same task where that listener was invoked.
I used an Error Boundary Event task to implement this but the issue is when that task is catching the error from listener ,its retrying the task to execute again and again.
What i want is it should not retry at all and just throw the error to the user.
Please help me in this.

Thanks & Regards

Hi @sg02.aug,

It would be great if you can elaborate more.

If your need is to catch technical error thrown by the task listener and simply forward it to the user then below post might be of help to you.

Hi,
but if i throw ProcessEngineException,it will create an incident ,but i dont want that.
I need just an error that will stop the activity task

Hi @sg02.aug,

Throwing a ProcessEngineException from within a TaskListener shouldn’t create an incident.

Hi @sg02.aug,

here is an example how to throw a BpmnError form an execution listener: GitHub - camunda-community-hub/Make-Rest-Calls-From-Camunda-Example: This is an example application which

Have a look at the process model to get a bigger overview: Make-Rest-Calls-From-Camunda-Example/process.bpmn at main · camunda-community-hub/Make-Rest-Calls-From-Camunda-Example · GitHub

Hope this helps, Ingo