jBMP是一个灵活的业务流程管理(Business Process Management(BPM))组件,它是轻量级、完全开源的,并且使用java编写,它允许你的模型,执行和监控业务流程,并贯穿业务流程的整个生命周期。
JBPM5由于创始人Tom Baeyens的出走,从而没有延续JBPM4的架构,下面介绍JBPM5的安装
操作系统:windowsXP
JDK:JDK1.6 按照文档 按照JBPM的说明文档3.1节
This script assumes you have Java JDK 1.5+ (set as JAVA_HOME), and Ant 1.7+ installed. If you don't, use the following links to download and install them:
Java:http://java.sun.com/javase/downloads/index.jsp
Ant: http://ant.apache.org/bindownload.cgi
JDK已经安装,我下载好了Ant版本为:apache-ant-1.8.2
1、下载好Ant,JBPM5.0以上版本,本次我用的是JBPM5.0.2
2、解压Ant,修改系统的环境变量PATH,将Ant命令引用加到环境变量里面
3、 按照文档安装JBPM
The easiest way to get started is to simply run the installation script to install the demo setup. Simply go into the install folder and run: ant install.demo This will:
• Download JBoss AS
• Download Eclipse
• Install Drools Guvnor into JBoss AS
• Install Oryx Designer into JBoss AS
• Install the jBPM gwt-console into JBoss AS
• Install the jBPM Eclipse plugin
• Install the Drools Eclipse plugin
这里由于Eclispe太大,建议将Eclispe压缩文件下载好放在jbpm解压后文件lib文件夹里面,那样节省安装时时间 安装成功后有提示:BUILD SUCCESSFUL
4、按照文档启动JBPM
Once the demo setup has finished, you can start playing with the various components by starting the demo setup: ant start.demo This will:
• Start the H2 database
• Start the JBoss AS
• Start Eclipse
• Start the Human Task Service
这里我启动时碰到了JBoss AS 7服务器启动不了的问题,解决方案:
1、首先查找是不是8080端口被占用了
2、如果8080端口没被占用还是启动不了,那请到安装后文件夹下的执行下jboss-as-7.0.2.Final\bin\standalone.bat文件,查看具体错误,也可以在jboss-as-7.0.2.Final\standalone\log查看server.log查看日志,对症解决具体的问题
第一次启动会出现警告你的build.xml:648:includeantruntime没有设置,这个警告可以忽略,也可以在build.xml第648行加上includeantruntime=”on” 到此待eclipse启动后可导入项目自带的sample,JBPM安装启动完毕 jBPM文档和安装包可以搜索官网下载,链接为:
http://sourceforge.net/projects/jbpm/files/jBPM%205/jbpm-5.2.0.Final