0 Replies Latest reply on Oct 15, 2015 6:04 PM by SANJAY GAUTAM

    How Can We Configure SignallingTaskHandlerDecorator inside kie-deployment-descriptor.xml

    SANJAY GAUTAM Expert

      Hi Guys, Contributes

       

      I saw this examples which is very good way of Exception Handling which is there in the GitHub

       

      https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/java/org/jbpm/examples/exceptions/ExceptionHandlingErrorExample.java

       

      Steps to Configure the ExceptionHandlingErrorExample

       

      String eventType = "Error-code";
         SignallingTaskHandlerDecorator signallingTaskWrapper
         = new SignallingTaskHandlerDecorator(ServiceTaskHandler.class, eventType);
        signallingTaskWrapper.setWorkItemExceptionParameterName(ExceptionService.exceptionParameterName);
        ksession.getWorkItemManager().registerWorkItemHandler("Service Task", signallingTaskWrapper);

       

      But is the same thing we have to do for all our tasks for the situations when using kie work bench deployment rather than standalone project how to configure the

       

      kie-Service-Task.png

       

      Please let me know what is the best way to register the new Task Handler. specially the setting of the WorkItemExceptionParameterName value

       

       

      thanks

      Sanjay Gautam