Decorated workItemHandlers and listeners cannot be deployed together

Solution Verified - Updated -

Issue

  • Decorated workItemHandlers and listeners cannot be deployed together.
  • If the workItemHandlers are not decorated the workItemHandlers and the listeners work.

Environment

  • Red Hat JBoss BPM Suite
    • 6.0.3
  • Reference kmodule.xml file:
<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <kbase name="defaultKieBase" default="true" eventProcessingMode="cloud" equalsBehavior="identity" declarativeAgenda="disabled" scope="javax.enterprise.context.ApplicationScoped" packages="*">
    <ksession name="defaultKieSession" type="stateful" default="true" clockType="realtime" scope="javax.enterprise.context.ApplicationScoped">
      <workItemHandlers>
        <workItemHandler type="new org.jbpm.bpmn2.handler.SignallingTaskHandlerDecorator(org.jbpm.workitem.HelloWorldWorkItemHandler.class, 'Error-abort')" name="HelloWorld"/>
      </workItemHandlers>
      <listeners>
        <ruleRuntimeEventListener type="org.jbpm.eventlistener.RREventListener"/>
        <agendaEventListener type="org.jbpm.eventlistener.AEventListener"/>
      </listeners>
    </ksession>
  </kbase>
</kmodule>

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