Throw an error event manually

1
0
-1

Hello,

Could you help me, how to throw an error manually in a human task? For example, when executing a human task "Order fulfilment" I receive a phone call from the customer that the order is rejected. How to set an error button in the task form to throw an error?

Regards

2 answers

1
+2
-1

Hi,

You have to solve it by process design.

There are different ways to achieve that:

  • With no errors. You basically handle the order rejection has another business decision and lead the process to a different task.
  • With a End error event. You can choose to go from the human task to an End error event. The case will end and throw an error.
  • With a Groovy connector. You can choose to implement a Groovy connector that will throw an exception in the case the user clicks on a specific form. You can configure the connector to throw a Error in case of failure.

Cheers

Comments

Submitted by turag on Fri, 10/13/2017 - 20:04

Good afternoon!

Thanks for the help. For me, the third option is more suitable. But there is one problem, the connector can cause an error when the user starts the task to execute or completes the task. And I need the user to be able to signal an abnormal situation during the execution of the task.
I read the documentation on the catch error events:

A boundary error on a human task indicates a user-declared exception, for example, where a human action such as ticking a checkbox can indicate there is a problem.

That is exactly what I want. But I don't know how to set a user-declared exception and how to raise it manually from the form.

Regards

1
0
-1

Choose to implement a Groovy connector that will throw an exception in the case the user clicks on a specific form. Configure the connector to throw a Error in case of failure.
192.168.1.1

Comments

Submitted by turag on Thu, 11/09/2017 - 16:48

Thanks

Notifications