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

Small Improvements on HumanTask API

    XMLWordPrintable

Details

    • Medium

    Description

      The currect org.jbpm.process.workitem.wsht package includes several different HumanTask implementations, most of them implements directly the org.drools.runtime.process.WorkItemHandler interface - although it works as expected the API can be improved by a set of small changes makes more clear the intent of each class.
      Here are a couple of suggestions, in order to make the API more explicit for end-users:

      1. Create a common HumanTask interface and all implementation inherits from it. This will allow users check easely (using any IDE) what are the available HumanTasks.
      2. Create some marker interfaces (like Serialization) to give additional context for users of each task usage/scope/goal. Some examples of those marker interfaces would be PersistentWSHumanTask, RemoteWSHumanTaskHandler and LocalWSHumanTaskHandler.

      Sure that both suggestions are already addressed somehow thru docs, but using a self describable API would be a big advantage.

      Attachments

        Activity

          People

            salaboy@gmail.com Mauricio Salatino (Inactive)
            abakos@redhat.com Alexandre Bakos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: