2 Replies Latest reply on Dec 20, 2005 12:26 AM by mkrishna143

    Need some help for GPD

    mkrishna143

      Hi everyone,
      I had completed the steps mentioned in the URL:
      http://docs.jboss.com/jbpm/v3/gpd/index.html
      After completing all the steps in it what should I do to integrate this with
      the workflow engine???
      Help me out.

      Regards,
      Krishnakumar M

        • 1. Re: Need some help for GPD
          sforema

          This helps you create a process definition and test it.

          Are you asking how to deploy the process definition into the database? That would deploying the par file.

          I'm not sure if the GPD comes with a build.xml so you can do it with ant. I've got one, but it's been so long, I'm not sure if I made it from scratch or it came with the GPD.

          Sean

          I've included the build.xml for reference. You will need to change it to fit your project, but it is very handy...

          <?xml version="1.0"?>
          <project name="EJB Creator" default="create_par" basedir=".">
          
           <!-- VARIABLES THAT NEED CUSTOMIZED ================================ -->
          
           <property name="jbpm.home" value="C:/stuff/installs/jboss_jbpm/jbpm-starters-kit-with-eclipse-3.0/jbpm-starters-kit-with-eclipse-3.0/jbpm" />
           <property name="jboss.home" value="C:/stuff/installs/jboss_jbpm/jbpm-starters-kit-with-eclipse-3.0/jbpm-starters-kit-with-eclipse-3.0/jbpm-server" />
           <property name="jboss.deploy.subdir" value="server/jbpm/deploy" />
           <property name="shared.lib.location" value="../shared_libraries/lib" />
           <property name="cdhps.location" value="../cdhps/bin" />
           <property name="cdhps.util.location" value="../util/build" />
          
           <!-- SETUP ENVIRONMENT VARIABLES FOR THE BUILD ===================== -->
          
           <!-- Version of this project -->
           <property name="version" value="1.0.0 Alpha" />
          
           <!-- Various Locations -->
           <property name="src.dir" value="./src/java" />
           <property name="build.dir" value="./build/classes" />
           <property name="par.dir" value="./par" />
           <property name="xml.dir" value="./src/process" />
           <property name="config.dir" value="./conf" />
           <property name="javadoc.dir" value="./doc/javadoc" />
           <property name="javadoc.overview" value="src/doc/overview.html" />
           <property name="db.conn.props" value="src/config.files/hibernate.properties" />
          
           <!-- Workflow Par Name -->
           <property name="parname" value="Workflow" />
          
           <!-- CLASSPATH -->
           <path id="classpath.config">
           <pathelement path="${build.dir}" />
           <pathelement path="${config.dir}" />
           <pathelement path="${cdhps.location}"/>
           <pathelement path="${cdhps.util.location}"/>
           <fileset dir="${shared.lib.location}" includes="**/*.jar" />
           </path>
          
           <!-- CLEAN ========================================================= -->
          
           <target name="clean" description="cleans/removes output directories">
           <delete dir="${build.dir}" />
           <delete dir="${par.dir}" />
           <delete dir="${javadoc.dir}" />
           </target>
          
           <!-- PREPARE ======================================================= -->
          
           <target name="prepare" depends="clean" description="creates output directories">
           <!-- Create the time stamp -->
           <tstamp/>
           <!-- Create the build directory structure used by compile -->
           <mkdir dir="${par.dir}" />
           <mkdir dir="${build.dir}" />
           <mkdir dir="${javadoc.dir}" />
           </target>
          
           <!-- COMPILE ======================================================= -->
          
           <target name="compile" depends="prepare" description="compiles the actionhandler classes">
           <!-- Compile the java code from ${src.dir} into ${build.dir} -->
           <echo message="Compiling source code..." />
           <javac srcdir="${src.dir}"
           destdir="${build.dir}" >
           <classpath refid="classpath.config" />
           <include name="**/*.java" />
           </javac>
           </target>
          
           <!-- CREATE PAR FILE =============================================== -->
          
           <target name="create_par" depends="compile" description="creates the par file">
           <jar jarfile="${par.dir}/${parname}.par">
           <fileset dir="${build.dir}/.." includes="**/*.class"/>
           <fileset dir="${xml.dir}" includes="**/*.xml" />
           </jar>
           </target>
          
           <!-- DEPLOY PAR FILE =============================================== -->
          
           <target name="deploy_par" depends="create_par,declare.jbpm.tasks" description="deploys the par file">
           <deploypar par="${par.dir}/${parname}.par" />
           </target>
          
           <target name="declare.jbpm.tasks" description="used by deploy_par to define deploypar ant task">
           <taskdef name="deploypar" classname="org.jbpm.ant.DeployParTask">
           <classpath refid="classpath.config" />
           </taskdef>
           </target>
          
           <!-- JAVADOC ======================================================= -->
          
           <target name="javadoc" depends="compile" description="creates the javadocs for this project">
           <javadoc
           sourcepath="${src.dir}"
           destdir="${javadoc.dir}"
           author="true"
           version="true"
           private="false"
           overview="${javadoc.overview}"
           windowtitle="jBPM EJB ${version}"
           bottom="Version : ${version}">
           <packageset dir="${src.dir}" />
           <classpath refid="classpath.config" />
           </javadoc>
           <copy todir="${javadoc.dir}">
           <fileset dir="${src.dir}" includes="**/*.gif,**/*.jpg"/>
           </copy>
           </target>
          
          </project>
          


          • 2. Re: Need some help for GPD
            mkrishna143

            Hi,
            Thanks for your reply.
            I am in need of a complete documentation about :
            What are all the steps that I have to do
            For creating a web application into the Application server using the created par file.
            I need the link for the documentation.
            I am clueless about the next steps for deploying my application.
            Regards,
            Krishnakumar M