JBPM工作流引擎使用環(huán)境的搭建
說(shuō)明:本實(shí)例在Java Project環(huán)境下測(cè)試,使用JBPM JPDL 套件包(jbpm-jpdl-suite-3.2.2.zip),IDE環(huán)境:eclipse-SDK-3.2.1-win32.zip
1.解壓eclipse,覆蓋jbpm-jpdl-3.2.GA/designer/目錄下的eclipse目錄
2.啟動(dòng)該目錄下designer.bat的文件,打開(kāi)IDE環(huán)境。
3.創(chuàng)建Project, Jboss JBPM-->Process Project
4.引入mysql驅(qū)動(dòng)包到項(xiàng)目中,創(chuàng)建數(shù)據(jù)庫(kù)jbpm
5.修改hibernate.cfg.xml文件,配置方言和數(shù)據(jù)庫(kù)連接
- <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
- <property name="hibernate.connection.url">jdbc:mysql://127.0.0.1/jbpm</property>
- <property name="hibernate.connection.username">root</property>
- <property name="hibernate.connection.password">bjsxt</property>
- <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
- <property name="hibernate.hbm2ddl.auto">update</property>
覆蓋
- <!-- hibernate dialect -->
- <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
- <!-- JDBC connection properties (begin) -->
- <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
- <property name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property>
- <property name="hibernate.connection.username">sa</property>
- <property name="hibernate.connection.password"></property>
- <!-- JDBC connection properties (end) -->
【編輯推薦】