Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4513

WebServiceWorkItemHandler should be extendable

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Minor
    • jBPM 6.2.0.Final
    • jBPM 6.2.0.CR1
    • Runtime Engine
    • None
    • 0
    • 0% 0%

    Description

      The WebServiceWorkItemHandler is quite difficult to extend. Especially the CXF DynamicClientFactory (DCF) private attribute of the WIH is unextendable. I.e., we can't easily subclass WebServiceWorkItemHandler and configure a different DCF.

      Proposal is to add a protected method 'buildDynamicClientFactory()', which returns the 'JaxWsDynamicClientFactory.newInstance()' in the default WebServiceWorkItemHandler implementation (basically a 'Factory Method' pattern implementation). This method should be used in the WebServiceWorkItemHandlers to retrieve the DCF.

      This would allow us to override the factory method to provide different implementations in a subclass, for example an implementation which creates a DCF using a SpringBusFactory.

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            rhn-gps-ddoyle Duncan Doyle (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: