SignallingTaskHandlerDecorator not working for retry signal when using remote client

Solution In Progress - Updated -

Issue

We use kie-server and all the client application is using the remote client via REST API.

For Exception Handling we want to use SignallingTaskHandlerDecorator, configured in the kie-deployment-descriptor.xml configuration:

    <work-item-handler>
      <resolver>mvel</resolver>
      <identifier>new org.jbpm.bpmn2.handler.SignallingTaskHandlerDecorator(com.test.TaskWIH.class, "Error-Task-errorCode")</identifier>
      <parameters/>
      <name>test</name>
    </work-item-handler>

This is a custom task and with this configuration, the WIH gets called, and when it throws an Excpetion, the error signal is caught. But now the issue I have is, on retry the signal is not caught.

I need to set the exceptionCountLimit parameter of the SignallingTaskHandlerDecorator.

I know how to do it programmatically, but as this is a remote client. How do I set the jbpm SignallingTaskHandlerDecorator exceptionCountLimit in the deployment descriptor or within the workflow scripts at run time?

Environment

  • Red Hat JBoss BPM Suite
    • 6.3.0
    • 6.4.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content