3 Replies Latest reply on Aug 16, 2011 6:10 AM by marco.rietveld

    jBPM5 - Why do we have hibernate.cfg.xml within jbpm-bam

    narayans

      I am trying to put together a jBPM console using Spring MVC for a quick POC. I am using GraphViewerPluginImpl (in jbpm-gwt-graph), which makes use of ProcessInstanceDbLog(in jbpm-bam) to retrieve ActiveNodeInfo for the give process.

       

      I got set back by hibernate.cfg.xml details hard-wired within jbpm-bam (same is also true for jbpm-gwt-console-server).

      Are jbpm-bam/jbpm-gwt-console-server modules for illustration purposes only and not expected to by used in production code?

        • 1. jBPM5 - Why do we have hibernate.cfg.xml within jbpm-bam
          narayans

          Ok. I managed to get my jBPM console working :-

          1. It displays all deployed processes

          2. It displays information about currently active processes including highlighting currently active nodes in process diagram.

           

          Apprarently I didn't had to use any of jbpm-gwt-xxx stuff, as all the information could be retrieved fom knowledgeSession and KnowldegeBase, also I dont think it is efficient to join to BAM tables to find active processinfo, this is what current gwt console does.

           

          Modules I used are jbpm-bpmn2 and jbpm-persistence-jpa, and my application is Spring based application with console written using Spring MVC.

          • 2. jBPM5 - Why do we have hibernate.cfg.xml within jbpm-bam
            rodri

            Interesting.. Could you share any code example or  Spring configuration files you have used?

            • 3. Re: jBPM5 - Why do we have hibernate.cfg.xml within jbpm-bam
              marco.rietveld

              Narayan,

               

              I think that the persistence.xml files were included in the jbpm-bam module because it wasy the ... quickest and easiest (and most obvious) solution.

               

              That's not to say that it was the best solution!!

               

              I've been looking at this as well and wondering about what a better way would be to set this up: if you could, I would be really interested in hearing what would have been a better solution!

               

              Thanks very much,

              Marco