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>
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913153#3913153

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913153


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to