cancel
Showing results for 
Search instead for 
Did you mean: 

BpmnError on TaskActivitiBehabior signal

gastonscapusio
Champ in-the-making
Champ in-the-making
Hi,

I'm using Activiti 5.13 and I've some problems catching BpmnError on signal method.
If I throw BpmnError on execute it works fine, but if I throw it on signal method the exception is propagated and not catched in the boundary error defined on the Task.

Is it posible to throw BpmnError on signal method?

This is the boundary error definition…
<blockcode>
    <serviceTask id="findWebServerIdTask" name="Find web server id" activiti:class="com.xxx.FindIdTask">
    </serviceTask>

    <boundaryEvent id="boundaryerror1" name="ErrorFindWebServer" attachedToRef="findWebServerIdTask">
      <errorEventDefinition></errorEventDefinition>
    </boundaryEvent>
</blockcode>

Regards,
Gaston
10 REPLIES 10

gastonscapusio
Champ in-the-making
Champ in-the-making
I've tried with activiti v5.15 but the result is the same.

BpmnError isn't catched by boundaryEvent.

frederikherema1
Star Contributor
Star Contributor
Do you mean you have a custom ActivityBehaviour with the signal() overridden and you throw a BPMNError from there? If so, what is your use case?

gastonscapusio
Champ in-the-making
Champ in-the-making
Yes, there is a task (extends TaskActivitiBehavior) which overwrites signal.
It sends a jms message and then it waits a signal to continue processing before leaves.

Should I change this behavior?

gastonscapusio
Champ in-the-making
Champ in-the-making
The signal method throws a BpmnError due to a jms message response case.
And this BpmnError is not catched by any boundaryEvent.

jbarrez
Star Contributor
Star Contributor
Hm that sounds like a bug. If im correct, the boundary event will only work for the execute().

COuld you create a simple unit test and Jira issue with a simplified version of your activitybehaviour that shows this problem?

gastonscapusio
Champ in-the-making
Champ in-the-making
I have created the issue.
http://jira.codehaus.org/browse/ACT-1999

Thanks

jcoveron
Champ in-the-making
Champ in-the-making
Greetings,
Just for you knowledge, the scenario explained by gastonscapusio also happens in version 5.17.
Regards,
José

jcoveron
Champ in-the-making
Champ in-the-making
Hi again everybody,

I was just wondering there is a workaround that we could use for now. We need to propagate the throw bpmnerror to an error boundary event from the signal function.

Any ideas or suggestions are welcome.

Many thanks in advance.

trademak
Star Contributor
Star Contributor
Other than solving the issue, I don't see any workaround.

Best regards,
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.