一、安装(源代码方式安装)
1.下载版本
jbpm-starters-kit-3.1.2
JDK:1.5(1.4下用ant编译不成功)
ant:1.6.5(1.6.2没有编译成功,可能是没有junit的原因)
2.生成数据
a.修改jbpm-starters-kit-3.1.2/jbpm-db/build.properties
#jbpm路径
jbpm.3.location=../jbpm
#hibernate配置文件位置
upgrade.hibernate.properties=oracle/hibernate.properties
#oracle驱动位置
upgrade.libdir=oracle/lib
b.修改jbpm-starters-kit-3.1.2/jbpm-db/oracle/hibernate.properties
hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
hibernate.connection.url=jdbc:oracle:thin:@<host>:<port>:<SID>
hibernate.connection.username=<username>
hibernate.connection.password=<password>
hibernate.connection.url=jdbc:oracle:thin:@<host>:<port>:<SID>
hibernate.connection.username=<username>
hibernate.connection.password=<password>
c.修改jbpm-starters-kit-3.1.2/jbpm/build.properties
# ant.home is only used in the ant.install.libs target for copying the junit and clover libs
ant.home=D:/java/org.apache.ant_1.6.5
ant.home=D:/java/org.apache.ant_1.6.5
# jbpm.home is only to allow build scripts to open the browser with the html test results
jbpm.home=D:/reference/jbpm-starters-kit-3.1.2/jbpm
jbpm.home=D:/reference/jbpm-starters-kit-3.1.2/jbpm
# jboss config proper only used for deployment
jboss.home=c:/software/jboss-4.0.3
jboss.home=c:/software/jboss-4.0.3
d.生成scripts
在jbpm-starters-kit-3.1.2/jbpm-db路径下,执行:ant oracle.scripts。生成文件被保存到jbpm-starters-kit-3.1.2/jbpm-db/build/oracle/scripts
e.修改jbpm-starters-kit-3.1.2/jbpm-db/build/oracle/scripts/oracle.drop.create.sql
将JBPM_LOG表的生成语句断成两行,否则在导入数据库时可能报错。(可能原因是超过了字符长度的限制)