Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13438

Camel jBPM WorkItemHandler should allow passthrough of Exceptions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.23.2, 3.0.0-M2
    • Fix Version/s: 2.24.0, 3.0.0-M3, 2.23.3, 3.0.0
    • Component/s: camel-jbpm
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Currently, the Camel-JBPM WorkItemHandler wraps every exception coming from a Camel Route into a WorkItemRuntimeException. Although this is a safe way to handle the exceptions, it's also very inflexible, as we can only return a single exception type, and thus only react to a single exception type in our BPMN2 model.

      We should add a "HandleExceptions" WIH parameter to indicate whether any exceptions should be handled by the WorkItemHandler or not. That way, we can make the Camel Routes responsible for handling the exceptions, which gives us much greater flexibility wrt error and exception handling.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                swiderski.maciej Maciej Swiderski
                Reporter:
                mccloud Duncan Doyle
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m