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

Extending HistorySession - add public getters in HistoryEvents

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • jBPM 4.3
    • None
    • None

      To deliver status and event information live to another system another HistorySession could be used. To be able to plug a new HistorySession into jBPM the event classes should have getter methods to give access to the event specific data.

      If possible, I can take care of these changes.... Testing should be simple for me, as I need these methods

      Event: ActivityEnd, DecisionEnd
      Public getter for: transitionName

      Event: TaskActivityStart, TaskAssign, TaskCreated, TaskDelete, TaskUpdated
      Public getter for: task

      Event: TaskAssign
      Public getter for: assignee

      Event: TaskComplete
      Public getter for: outcome

      Event: TaskDelete
      Public getter for: reason

      Event: VariableCreate, VariableUpdate
      Public getter for: variable

      In addition the Binding for HistorySessionChain is missing:
      public class HistorySessionChainBinding extends WireDescriptorBinding {

      private static final String HISTORY_SESSION_CHAIN_TAG = "history-session-chain";

      public HistorySessionChainBinding()

      { super(HISTORY_SESSION_CHAIN_TAG); }

      public Object parse(Element element, Parse parse, Parser parser)

      { ObjectDescriptor objectDescriptor = new ObjectDescriptor(HistorySessionChain.class); ListBinding listBinding = new ListBinding(); ListDescriptor listDescriptor = (ListDescriptor) listBinding.parse(element, parse, parser); objectDescriptor.addInjection("delegates", listDescriptor); return objectDescriptor; }

      }

            tom.baeyens Tom Baeyens (Inactive)
            tcr_jira Torsten R (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: