2 Replies Latest reply on Mar 23, 2010 7:32 AM by ziccardi

    JBPM Configuration files question

      Hi all!

       

      I've a couple of simple (I think) questions about the  jbpm configuration files (jbpm.cfg.xml and jbpm.hibernate.cfg.xml).

       

      To  load the JBPM configuration, I use the following code:

       

      processEngine  = new Configuration()
                 .setFile(new File("/tmp/jbpm.cfg.xml"))
                 .buildProcessEngine();

       

      However, I couldn't find a way to tell  JBPM where the jbpm.hiberate.cfg.xml file is: jbpm always search for it  into the classpath.

      My questions are:

      1. Is there a way to tell JBPM where the  jbpm.hibernate.cfg.xml file is?
      2. Is there a place where I can find  the documentation about all the configurations I can setup with the  jbpm.cfg.xml? I could't find any documentation about how to edit such  file.


      Thank you in advance.

       

      Regards,
      Massimiliano

        • 1. Re: JBPM Configuration files question
          swiderski.maciej
          1. Is there a way to tell JBPM where the  jbpm.hibernate.cfg.xml file is?

          Yes, you can specify that in your jbpm.cfg.xml file as follows:

           

          <jbpm-configuration>    
          ....
            <process-engine-context>
               ....
              <hibernate-configuration>
                <cfg resource="custom-jbpm.hibernate.cfg.xml" />     
              </hibernate-configuration>
               ....
            </process-engine-context>
          ....
          </jbpm-configuration>
          

          There are three ways of providing location to the file:

          - resource attribute to select from classpath

          - file attribute to select from file system

          - url attribute

          1. Is there a place where I can find  the documentation about all the configurations I can setup with the  jbpm.cfg.xml? I could't find any documentation about how to edit such  file.

          Unfortunately there is probably no official documentation as far as I know, but source code is quite good to get such information.

           

          HTH

          Maciej

          • 2. Re: JBPM Configuration files question

            Thank you very much!

             

            That was what I was searching for!

             

            Regards,

            Massimiliano