3 Replies Latest reply on Mar 15, 2007 2:20 PM by zipwow

    intigration of an jbpm with an webapplication.

    dsrkreddy

      hello Everyone ,

      currently iam working on a web apllication for which we are using jbpm as workflow, for our application we are using oracle as DB and tomcat server , so i configured jbpm with tomcat and oracle and its working fine there , but i had blocked at one point that iam unable to use jbpm methods into our application . but honestly i didn't know how to use this methods in our application as we have some interfaces which we need to impliment by calling jbpm methods .. so should i need to add the JBPM-3.1.2.jar in lib dir inside our application .. as per now i had my appliation and jbpm in tomcat webapps dir

      which is of structure some thing like this

      + webapps
      -test.war
      -jbpm.war
      +test
      -META-INF
      +WEB-INF
      +classes
      +lib
      -log4j.xml
      -web.xml
      -config.properties
      +jbpm
      +classes
      +lib
      -faces-config.xml
      -web.xml
      -jbpm.xml


      so please help me in how to integrate my application with jbpm. and make sure me how my application dir structure should be ..should i need to drop compleate jbpm into our application dir inside the tomaca/webapps by addding the jars in lib dir of jbpm to the lib dir of our application .. e.t.c so please help me ... :)

      Thanks in advance

      cheers
      sam.



        • 1. Re: intigration of an jbpm with an webapplication.
          dsrkreddy

           

          "chutki" wrote:



          + webapps
          -test.war
          -jbpm.war
          +test

          -META-INF
          +WEB-INF

          +classes
          +lib
          -log4j.xml
          -web.xml
          -config.properties
          +jbpm
          -META-INF
          +WEB-INF

          • 2. Re: intigration of an jbpm with an webapplication.
            koen.aers

            Have a look at the example on the wiki.

            Regards,
            Koen

            • 3. Re: intigration of an jbpm with an webapplication.
              zipwow

              I added this ant task to the starter kit buildfile:

              <target name="build.warfile" depends="build.webapp, build.jbpm, build.identity, build.processes" description="builds jbpm-console-${jbpm.version}.war">
              
               <war destfile="build/jbpm-console-${jbpm.version}.war" webxml="src/resources/jbpm.war/WEB-INF/web.xml">
               <classes dir="src/resources/jbpm.war/WEB-INF/classes" />
              
               <!-- careful,the log4j logger is set to debug by default -->
               <zipfileset prefix="WEB-INF/classes" dir="src/config.files" />
               <zipfileset prefix="WEB-INF/classes" dir="build/classes.webapp" />
              
               <zipfileset prefix="" dir="src/resources/jbpm.war"/>
               <zipfileset prefix="WEB-INF/lib" dir="lib/jsf" />
               <zipfileset prefix="WEB-INF/lib" dir="lib/jboss" includes="**.jar, **.license*" excludes="**javax*"/>
               <zipfileset prefix="WEB-INF/lib" dir="lib/hibernate" />
               <zipfileset prefix="WEB-INF/lib" dir="lib/dom4j" />
               <zipfileset prefix="WEB-INF/lib" dir="lib/commons" />
               <zipfileset prefix="WEB-INF/lib" dir="build" includes="**.jar, **.license*" />
               </war>
               </target>


              This probably includes more jarfiles than it needs, but it produces a warfile that at least starts up on Tomcat 5.5.16

              -Kevin Klinemeier