【IT168 信息化】
说明:本实例在Java Project环境下测试,使用JBPM JPDL 套件包(jbpm-jpdl-suite-3.2.2.zip),IDE环境:eclipse-SDK-3.2.1-win32.zip
1.解压eclipse,覆盖jbpm-jpdl-3.2.GA/designer/目录下的eclipse目录
2.启动该目录下designer.bat的文件,打开IDE环境。
3.创建Project, Jboss JBPM-->Process Project
4.引入mysql驱动包到项目中,创建数据库jbpm
5.修改hibernate.cfg.xml文件,配置方言和数据库连接
以下是引用片段:
<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) -->