Catching technical errors from Camunda BPM?

2,531 views
Skip to first unread message

Anton

unread,
Sep 17, 2014, 6:08:21 AM9/17/14
to camunda-...@googlegroups.com
Hello,

I am trying to use Camunda REST Connector with ServiceTasks to perform automatic tasks in my BPM workflow. However I am not sure what is the best way to catch technical errors that occur within the ServiceTask, for example if the REST API endpoint is not responding.

I would assume that I should have boundary errors after for example 1-2-3 retries of the API, but the documentation says that "In the context of the process engine, errors are normally raised as Java exceptions which you have to handle."

I am using Camunda only through the REST API, and I am not sure how to handle technical errors (for example if the ServiceTask should send an email, but the REST API is down and it is not possible to send the email. Then this sounds like a business error, since an admin should perform a manual task of sending the email himself...).

What is the best practice to handle technical errors in a BPM workflow?

Thank you,

Best regards,
Anton

Bernd Rücker (camunda)

unread,
Sep 17, 2014, 6:36:59 AM9/17/14
to camunda-...@googlegroups.com
Hi Anton.

Best practice in this case is to configure the service task be
"asynchronous" - then an exception is handled by our job executor and you
can configure retry behavior. See
http://docs.camunda.org/latest/guides/user-guide/#process-engine-transactions-in-processes-asynchronous-continuations.
When retries are used up you get an incident in the engine and a red light
in cockpit.

Hope that helps to give you some initial direction.

Cheers
Bernd

-----Ursprüngliche Nachricht-----
Von: camunda-...@googlegroups.com
[mailto:camunda-...@googlegroups.com] Im Auftrag von Anton
Gesendet: Mittwoch, 17. September 2014 12:08
An: camunda-...@googlegroups.com
Betreff: [camunda-bpm-users] Catching technical errors from Camunda BPM?
--
You received this message because you are subscribed to the Google Groups
"camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/camunda-bpm-users/c3252cda-b105-441c-b0e1-40223430e965%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anton Evangelatov

unread,
Sep 17, 2014, 7:32:41 AM9/17/14
to camunda-...@googlegroups.com
Hi Bernd,

Thank you very much. This worked like a charm.

Best regards,
Anton
Reply all
Reply to author
Forward
0 new messages