Jbpm4.3连接数据库配置
Jbpm4.3连接数据库配置 收藏
1、我以mysql为例子
2、在mysql数据库中创建一个数据库,数据库名随便取个,然后找到:
view plaincopy to clipboardprint?
${JBPM_HOME}\install\src\db\create\jbpm.mysql.create.sql
${JBPM_HOME}\install\src\db\create\jbpm.mysql.create.sql
3、在mysql里执行下面的脚本:
view plaincopy to clipboardprint?
create table JBPM4_DEPLOYMENT (
DBID_ bigint not null,
NAME_ longtext,
TIMESTAMP_ bigint,
STATE_ varchar(255),
primary key (DBID_)
) type=InnoDB;
create table JBPM4_DEPLOYPROP (
DBID_ bigint not null,
DEPLOYMENT_ bigint,
OBJNAME_ varchar(255),
KEY_ varchar(255),
STRINGVAL_ varchar(255),
LONGVAL_ bigint,
primary key (DBID_)
) type=InnoDB;
create table JBPM4_EXECUTION (
DBID_ bigint not null,
CLASS_ varchar(255) not null,
DBVERSION_ integer not null,
ACTIVITYNAME_ varchar(255),
PROCDEFID_ varchar(255),
HASVARS_ bit,
NAME_ varchar(255),
KEY_ varchar(255),
ID_ varchar(255) unique,
STATE_ varchar(255),
SUSPHISTSTATE_ varchar(255),
PRIORITY_ integer,
HISACTINST_ bigint,
PARENT_ bigint,
INSTANCE_ bigint,
SUPEREXEC_ bigint,
SUBPROCINST_ bigint,
PARENT_IDX_ integer,
primary key (DBID_)
) type=InnoDB;
create table JBPM4_HIST_ACTINST (
DBID_ bigint not null,
CLASS_ varchar(255) not null,
DBVERSION_ integer not null,
HPROCI_ bigint,
TYPE_ varchar(255),
EXECUTION_ varchar(255),
ACTIVITY_NAME_ varchar(255),
START_ datetime,
END_ datetime,
DURATION_ bigint,
TRANSITION_ varchar(255),
NEXTIDX_ integer,
HTASK_ bigint,
primary key (DBID_)
) type=InnoDB;
create table JBPM4_HIST_DETAIL (
DBID_ bigint not null,
CLASS_ varchar(255) not null,
DBVERSION_ integer not null,
USERID_ varchar(255),
TIME_ datetime,
HPROCI_ bigint,
HPROCIIDX_ integer,
HACTI_ bigint,
HACTIIDX_ integer,
HTASK_ bigint,
HTASKIDX_ integer,