Create incident or error for receive task

Hi,

is there a way to create an error or incident for a receive task via the API. I did not find something for that in the documentation.

The problem is that the service that sends the signal message to the process engine would like to send an error signal to the receive task. Currently we do not know how to do that. Without that the process would stay in the receive task without a notice that the processing behind the signal has failed.

Is there a way like for the external task to send an error to the task?

Regards

Alexander

Hi Alexander,

what is the reason that you don’t use the external task?

Greets,
Chris

Hi Chris,

the reason is an asynch running process in a other program. I cannot use the external task for that. That is why we try to use the send/receive task to trigger that. But in case of an error in the other program we have no clean idea how to report that back into the process of the receive task similar to the external task.

But I have the feeling when you ask this question then there is no “simple” way to make an error or incident to the task.

Perhaps a solution with a end listener will work here. So we add an end listener and throw there an error when a specific variable is set to an error. I think I have answered my question :slight_smile:

I still think that for the correlation stuff a similar way to report an error like in the external task interface would be nice.

Thanks and regards,

Alexander

Hi guys,

I’ve just realized i need the same feature Alexander proposed here. Have you solved this feature anyhow?

Cheers.

J.