7 Replies Latest reply on Aug 30, 2010 3:15 AM by Marco Baroetto

    Extending jBPM 4 history service

    Martin Pradny Newbie

      Hello,

      I'm evaluating jBPM for one project. We want to move process definitions from existing system to separate server running jBPM that could be potentially reused. I've to create possible integration scenario.

      Current system is fully functional and the user frontend is working, but since we want to have more flexible process definitions, moving them to JBPM would help us a lot.

      My idea was:

      1. Current system would signal user activities to jBPM, e.g. activity completed (since this would be just a small change in code where we currently do this with local data, no big deal)
      2. I need to get feedback from the jBPM about instance progress. I don't want to put this as automated activity or listener 1000 times in every process, so I was thinking about a general solution.
      My idea is to create custom history service implementation that would do updates to current database. Then it could be completely process independent and process designers would not have to worry about this.

      Has anyone tried this? So far I haven't found clean way how to add custom history service to jBPM via configuration. Ideally I would like just to plug my eg. CustomHistoryService to standard jBPM build to get it running.

      Is this feasible? If you think that this can't be covered by jBPM use cases, let me know too.

      Thanks,

      Martin