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?
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.
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
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.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.