Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-2028

investigate using RuntimeException for fault propagation in SwitchYardServiceChannel

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: component-rules
    • Labels:
      None

      Description

      Our SwitchYardServiceChannel (a Drools Channel impl) and SwitchYardServiceTaskHandler (a jBPM WorkItemHandler impl) both share the same code (SwitchYardServiceInvoker) to execute SY service references.

      It should be noted that both interfaces (Channel and WorkItemHandler) do not allow for checked exceptions.

      If an error occurs, they have different behavior. In our WorkItemHandler, we allow configuration to throw the error wrapped in a RuntimeException, or you can abort the work item, complete it anyway, or skip. The default is throw. However, in our Channel, we only ever log the error. We should probably similarly allow for the exception to be wrapped and thrown here too. Thought should be given in changing the default behavior, however, to line up with our WorkItemHandler.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tcunning Thomas Cunningham
                  Reporter:
                  dward David Ward
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated: