1.需要的軟體
jBpm 2.0 is tested on a Windows XP machine with following software packages installed :
1)'J2SE SDK v 1.4.2_03', downloaded from http://java.sun.com/j2se/1.4.2/download.html
說明:我用1.4.1也可以
2)'Apache Ant version 1.6.1', downloaded from http://ant.apache.org/bindownload.cgi
說明:我用1.6.1以下的版本試也可以
3)Optionally, you can deploy jbpm on the JBoss j2ee server. 'JBoss 3.2.5', download from
http://prdownloads.sourceforge.net/jboss/jboss-3.2.5.zip?download,
unzip and set the JBOSS_HOME environment variable
2.擷取jbpm原始碼的方法
Connection type: pserver
User: anonymous
Password:
Host: cvs.sourceforge.net
Port: 2401 (which is the default)
Repository path: /cvsroot/jbpm
Label: :pserver:anonymous@cvs.sourceforge.net:/cvsroot/jbpm
Then checkout module jbpm2.
我想不用再說什麼了吧?
3.布署
1)Installationunzip jbpm to a folder of your choice
和前面的參數要一致
2)update the configs in build.properties to your environment with your favorite text editor
這步很簡單,4個參數修改後就可以了
3)in directory ${jbpm.home} run 'ant configure.jboss.3.2.3+'. (the same task works for jboss-3.2.5)
That creates a jbpm configuration ${jboss.home}/server/jbpm which is basically a copy of the 'all'
configuration. The only difference is that 2 files are added to the deploy directory :
jbpm-db-service.xml and jbpm-ds.xml
這個其實就是在jboss下加一個jbpm應用
4)start the jbpm configuration of jboss with '%JBOSS_HOME%/bin/run.bat -c jbpm'.
啟動jboss下的jbpm應用
5)in directory ${jbpm.home}/web run 'ant deploy'. This will build and deploy the web application
to the jboss configuration that we've just created.
把我們具體內容發布到jbpm應用中
6)in directory ${jbpm.home}/web run 'ant deploy.process.archives'.
This deploys the demo payraise process to the jbpm database in jboss.
Since this is normally your first jbpm access to the database, this will also create the jbpm tables automatically.
發布流程定義,包括建立表結構
7)surf to http://localhost:8080/jbpm
可以開始學習了,呵呵.