Is it possible to throw an error event using the engine API?

Hi,

When it comes to error management at process level, I can have my failing connectors throw an error event and use a catch error event to automatically handle the situation.

Now, I would like to be able to catch the errors raised by my process outside a connector (e.g. in an operation, contract validation, ...). So, for lack of a better alternative, I was wondering whether I might force and throw an error event programmatically from within my operation/contract validation/... scripts.

  • Is this possible at all?
  • If so, how can it be done? (i.e. What sequence of classes/methods should I call?)
  • Else, what alternatives do I have?

Thank you for your help!

1 Like

Hello,

This is not possible at all or at least it would be highly hacky.

What is the use case?