set current schema JBPM;
create table JBPM4_DEPLOYMENT (
DBID_ bigint not null,
NAME_ clob(10485760),
TIMESTAMP_ bigint,
STATE_ varchar(255),
primary key (DBID_)
);
create table JBPM4_DEPLOYPROP (
DBID_ bigint not null,
DEPLOYMENT_ bigint,
OBJNAME_ varchar(255),
KEY_ varchar(255),
STRINGVAL_ varchar(255),
LONGVAL_ bigint,
primary key (DBID_)
);
create table JBPM4_EXECUTION (
DBID_ bigint not null,
CLASS_ varchar(255) not null,
DBVERSION_ integer not null,
ACTIVITYNAME_ varchar(255),
PROCDEFID_ varchar(255),
HASVARS_ int,
NAME_ varchar(255),
KEY_ varchar(255),
ID_ varchar(255),
STATE_ varchar(255),
SUSPHISTSTATE_ varchar(255),
PRIORITY_ integer,
HISACTINST_ bigint,
PARENT_ bigint,
INSTANCE_ bigint,
SUPEREXEC_ bigint,
SUBPROCINST_ bigint,
PARENT_IDX_ integer,
primary key (DBID_)
--unique (ID_)
);
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_ timestamp,
END_ timestamp,
DURATION_ bigint,
TRANSITION_ varchar(255),
NEXTIDX_ integer,
HTASK_ bigint,
primary key (DBID_)
);
create table JBPM4_HIST_DETAIL (
DBID_ bigint not null,
CLASS_ varchar(255) not null,
DBVERSION_ integer not null,
USERID_ varchar(255),
TIME_ timestamp,
HPROCI_ bigint,
HPROCIIDX_ integer,
HACTI_ bigint,
HACTIIDX_ integer,
HTASK_ bigint,
HTASKIDX_ integer,
HVAR_ bigint,
HVARIDX_ integer,
MESSAGE_ clob(10485760),
OLD_STR_ varchar(255),
NEW_STR_ varchar(255),
OLD_INT_ integer,
NEW_INT_ integer,
OLD_TIME_ timestamp,
NEW_TIME_ timestamp,
PARENT_ bigint,
PARENT_IDX_ integer,
primary key (DBID_)
);
create table JBPM4_HIST_PROCINST (
DBID_ bigint not null,
DBVERSION_ integer not null,
ID_ varchar(255),
PROCDEFID_ varchar(255),
KEY_ varchar(255),
START_ timestamp,
END_ timestamp,
DURATION_ bigint,
STATE_ varchar(255),
ENDACTIVITY_ varchar(255),
NEXTIDX_ integer,
primary key (DBID_)
);
create table JBPM4_HIST_TASK (
DBID_ bigint not null,
DBVERSION_ integer not null,
EXECUTION_ varchar(255),
OUTCOME_ varchar(255),
ASSIGNEE_ varchar(255),
PRIORITY_ integer,
STATE_ varchar(255),
CREATE_ timestamp,
END_ timestamp,
DURATION_ bigint,
NEXTIDX_ integer,
SUPERTASK_ bigint,
primary key (DBID_)
);
create table JBPM4_HIST_VAR (
DBID_ bigint not null,
DBVERSION_ integer not null,
PROCINSTID_ varchar(255),
EXECUTIONID_ varchar(255),
VARNAME_ varchar(255),
VALUE_ varchar(255),
HPROCI_ bigint,
HTASK_ bigint,
primary key (DBID_)
);
create table JBPM4_ID_GROUP (
DBID_ bigint not null,
DBVERSION_ integer not null,
ID_ varchar(255),
NAME_ varchar(255),
TYPE_ varchar(255),
PARENT_ bigint,
primary key (DBID_)
);
create table JBPM4_ID_MEMBERSHIP (
DBID_ bigint not null,
DBVERSION_ integer not null,
USER_ bigint,
GROUP_ bigint,
NAME_ varchar(255),
primary key (DBID_)
);
create table JBPM4_ID_USER (
DBID_ bigint not null,
DBVERSION_ integer not null,
ID_ varchar(255),
PASSWORD_ varchar(255),
GIVENNAME_ varchar(255),
FAMILYNAME_ varchar(255),
BUSINESSEMAIL_ varchar(255),
primary key (DBID_)
);
create table JBPM4_JOB (
DBID_ bigint not null,
CLASS_ varchar(255) not null,
DBVERSION_ integer not null,
DUEDATE_ timestamp,
STATE_ varchar(255),
ISEXCLUSIVE_ int,
LOCKOWNER_ varchar(255),
LOCKEXPTIME_ timestamp,
EXCEPTION_ clob(10485760),
RETRIES_ integer,
PROCESSINSTANCE_ bigint,
EXECUTION_ bigint,
CFG_ bigint,
SIGNAL_ varchar(255),
EVENT_ varchar(255),
REPEAT_ varchar(255),
primary key (DBID_)
);
create table JBPM4_LOB (
DBID_ bigint not null,
DBVERSION_ integer not null,
BLOB_VALUE_ blob(10485760),
DEPLOYMENT_ bigint,
NAME_ clob(10485760),
primary key (DBID_)
);
create table JBPM4_PARTICIPATION (
DBID_ bigint not null,
DBVERSION_ integer not null,
GROUPID_ varchar(255),
USERID_ varchar(255),
TYPE_ varchar(255),
TASK_ bigint,
SWIMLANE_ bigint,
primary key (DBID_)
);
create table JBPM4_PROPERTY (
KEY_ varchar(255) not null,
VERSION_ integer not null,
VALUE_ varchar(255),
primary key (KEY_)
);
create table JBPM4_SWIMLANE (
DBID_ bigint not null,
DBVERSION_ integer not null,
NAME_ varchar(255),
ASSIGNEE_ varchar(255),
EXECUTION_ bigint,
primary key (DBID_)
);
create table JBPM4_TASK (
DBID_ bigint not null,
CLASS_ char(1) not null,
DBVERSION_ integer not null,
NAME_ varchar(255),
DESCR_ clob(10485760),
STATE_ varchar(255),
SUSPHISTSTATE_ varchar(255),
ASSIGNEE_ varchar(255),
FORM_ varchar(255),
PRIORITY_ integer,
CREATE_ timestamp,
DUEDATE_ timestamp,
PROGRESS_ integer,
SIGNALLING_ int,
EXECUTION_ID_ varchar(255),
ACTIVITY_NAME_ varchar(255),
HASVARS_ int,
SUPERTASK_ bigint,
EXECUTION_ bigint,
PROCINST_ bigint,
SWIMLANE_ bigint,
TASKDEFNAME_ varchar(255),
primary key (DBID_)
);
create table JBPM4_VARIABLE (
DBID_ bigint not null,
CLASS_ varchar(255) not null,
DBVERSION_ integer not null,
KEY_ varchar(255),
CONVERTER_ varchar(255),
HIST_ int,
EXECUTION_ bigint,
TASK_ bigint,
LOB_ bigint,
DATE_VALUE_ timestamp,
DOUBLE_VALUE_ double,
CLASSNAME_ varchar(255),
LONG_VALUE_ bigint,
STRING_VALUE_ varchar(255),
TEXT_VALUE_ clob(10485760),
EXESYS_ bigint,
primary key (DBID_)
);
create index IDX_DEPLPROP_DEPL on JBPM4_DEPLOYPROP (DEPLOYMENT_);
alter table JBPM4_DEPLOYPROP
add constraint FK_DEPLPROP_DEPL
foreign key (DEPLOYMENT_)
references JBPM4_DEPLOYMENT;
create index IDX_EXEC_SUPEREXEC on JBPM4_EXECUTION (SUPEREXEC_);
create index IDX_EXEC_INSTANCE on JBPM4_EXECUTION (INSTANCE_);
create index IDX_EXEC_SUBPI on JBPM4_EXECUTION (SUBPROCINST_);
create index IDX_EXEC_PARENT on JBPM4_EXECUTION (PARENT_);
alter table JBPM4_EXECUTION
add constraint FK_EXEC_PARENT
foreign key (PARENT_)
references JBPM4_EXECUTION;
alter table JBPM4_EXECUTION
add constraint FK_EXEC_SUBPI
foreign key (SUBPROCINST_)
references JBPM4_EXECUTION;
alter table JBPM4_EXECUTION
add constraint FK_EXEC_INSTANCE
foreign key (INSTANCE_)
references JBPM4_EXECUTION;
alter table JBPM4_EXECUTION
add constraint FK_EXEC_SUPEREXEC
foreign key (SUPEREXEC_)
references JBPM4_EXECUTION;
create index IDX_HACTI_HPROCI on JBPM4_HIST_ACTINST (HPROCI_);
create index IDX_HTI_HTASK on JBPM4_HIST_ACTINST (HTASK_);
alter table JBPM4_HIST_ACTINST
add constraint FK_HACTI_HPROCI
foreign key (HPROCI_)
references JBPM4_HIST_PROCINST;
alter table JBPM4_HIST_ACTINST
add constraint FK_HTI_HTASK
foreign key (HTASK_)
references JBPM4_HIST_TASK;
create index IDX_HDET_HACTI on JBPM4_HIST_DETAIL (HACTI_);
create index IDX_HDET_HPROCI on JBPM4_HIST_DETAIL (HPROCI_);
create index IDX_HDET_HVAR on JBPM4_HIST_DETAIL (HVAR_);
create index IDX_HDET_HTASK on JBPM4_HIST_DETAIL (HTASK_);
alter table JBPM4_HIST_DETAIL
add constraint FK_HDETAIL_HPROCI
foreign key (HPROCI_)
references JBPM4_HIST_PROCINST;
alter table JBPM4_HIST_DETAIL
add constraint FK_HDETAIL_HACTI
foreign key (HACTI_)
references JBPM4_HIST_ACTINST;
alter table JBPM4_HIST_DETAIL
add constraint FK_HDETAIL_HTASK
foreign key (HTASK_)
references JBPM4_HIST_TASK;
alter table JBPM4_HIST_DETAIL
add constraint FK_HDETAIL_HVAR
foreign key (HVAR_)
references JBPM4_HIST_VAR;
create index IDX_HSUPERT_SUB on JBPM4_HIST_TASK (SUPERTASK_);
alter table JBPM4_HIST_TASK
add constraint FK_HSUPERT_SUB
foreign key (SUPERTASK_)
references JBPM4_HIST_TASK;
create index IDX_HVAR_HPROCI on JBPM4_HIST_VAR (HPROCI_);
create index IDX_HVAR_HTASK on JBPM4_HIST_VAR (HTASK_);
alter table JBPM4_HIST_VAR
add constraint FK_HVAR_HPROCI
foreign key (HPROCI_)
references JBPM4_HIST_PROCINST;
alter table JBPM4_HIST_VAR
add constraint FK_HVAR_HTASK
foreign key (HTASK_)
references JBPM4_HIST_TASK;
create index IDX_GROUP_PARENT on JBPM4_ID_GROUP (PARENT_);
alter table JBPM4_ID_GROUP
add constraint FK_GROUP_PARENT
foreign key (PARENT_)
references JBPM4_ID_GROUP;
create index IDX_MEM_USER on JBPM4_ID_MEMBERSHIP (USER_);
create index IDX_MEM_GROUP on JBPM4_ID_MEMBERSHIP (GROUP_);
alter table JBPM4_ID_MEMBERSHIP
add constraint FK_MEM_GROUP
foreign key (GROUP_)
references JBPM4_ID_GROUP;
alter table JBPM4_ID_MEMBERSHIP
add constraint FK_MEM_USER
foreign key (USER_)
references JBPM4_ID_USER;
create index IDX_JOBRETRIES on JBPM4_JOB (RETRIES_);
create index IDX_JOB_CFG on JBPM4_JOB (CFG_);
create index IDX_JOB_PRINST on JBPM4_JOB (PROCESSINSTANCE_);
create index IDX_JOB_EXE on JBPM4_JOB (EXECUTION_);
create index IDX_JOBLOCKEXP on JBPM4_JOB (LOCKEXPTIME_);
create index IDX_JOBDUEDATE on JBPM4_JOB (DUEDATE_);
alter table JBPM4_JOB
add constraint FK_JOB_CFG
foreign key (CFG_)
references JBPM4_LOB;
create index IDX_LOB_DEPLOYMENT on JBPM4_LOB (DEPLOYMENT_);
alter table JBPM4_LOB
add constraint FK_LOB_DEPLOYMENT
foreign key (DEPLOYMENT_)
references JBPM4_DEPLOYMENT;
create index IDX_PART_TASK on JBPM4_PARTICIPATION (TASK_);
alter table JBPM4_PARTICIPATION
add constraint FK_PART_SWIMLANE
foreign key (SWIMLANE_)
references JBPM4_SWIMLANE;
alter table JBPM4_PARTICIPATION
add constraint FK_PART_TASK
foreign key (TASK_)
references JBPM4_TASK;
create index IDX_SWIMLANE_EXEC on JBPM4_SWIMLANE (EXECUTION_);
alter table JBPM4_SWIMLANE
add constraint FK_SWIMLANE_EXEC
foreign key (EXECUTION_)
references JBPM4_EXECUTION;
create index IDX_TASK_SUPERTASK on JBPM4_TASK (SUPERTASK_);
alter table JBPM4_TASK
add constraint FK_TASK_SWIML
foreign key (SWIMLANE_)
references JBPM4_SWIMLANE;
alter table JBPM4_TASK
add constraint FK_TASK_SUPERTASK
foreign key (SUPERTASK_)
references JBPM4_TASK;
create index IDX_VAR_EXESYS on JBPM4_VARIABLE (EXESYS_);
create index IDX_VAR_TASK on JBPM4_VARIABLE (TASK_);
create index IDX_VAR_EXECUTION on JBPM4_VARIABLE (EXECUTION_);
create index IDX_VAR_LOB on JBPM4_VARIABLE (LOB_);
alter table JBPM4_VARIABLE
add constraint FK_VAR_LOB
foreign key (LOB_)
references JBPM4_LOB;
alter table JBPM4_VARIABLE
add constraint FK_VAR_EXECUTION
foreign key (EXECUTION_)
references JBPM4_EXECUTION;
alter table JBPM4_VARIABLE
add constraint FK_VAR_EXESYS
foreign key (EXESYS_)
references JBPM4_EXECUTION;
alter table JBPM4_VARIABLE
add constraint FK_VAR_TASK
foreign key (TASK_)
references JBPM4_TASK;
分享到:
相关推荐
JBPM 4 mysql 建表 sql ,希望对某些人有用处
这东西很少见啊,共享给大家,是jbpm4的数据库表sql脚本,不知道怎么建库的朋友可以参考。
经过我修正的JBPM4.4数据库mysql5.5建表SQL命令,共18张表
工作流jbpm4.4,建表语句,已修正错误,希望后来人能够节约时间。
- 外键约束`FK_DEPLPROP_DEPL`确保`JBPM4_DEPLOYPROP.deployment`字段的值存在于`JBPM4_DEPLOYMENT.dbid_`中。 - **索引创建:** ```sql createindex IDX_DEPLPROP_DEPL on JBPM4_DEPLOYPROP(DEPLOYMENT_) ...
jbpm4.4 DB2数据库脚本,可直接执行sql脚本,创建jbpm4.4 数据库表
内含的"建表sql语句"是为了初始化jBPM数据库所必需的。jBPM在运行时需要存储流程实例、任务、变量等数据,因此需要创建相应的数据库表。这些SQL脚本可能包括创建流程定义表、任务表、历史表等,它们确保了jBPM能够...
4. **zpchen.zip**:这可能是个人开发者或者某个团队的代码库,可能包含了他们关于JBPM和Spring集成的特定实现或者示例。 通过上述文件,你可以学习到如何将JBPM、Spring和SQL结合,实现一个完整的业务流程管理系统...
标题“jbpm支持表_mysql的sql文件”表明我们要讨论的是关于jbpm(一个开源的工作流管理系统)在MySQL数据库中的表结构和支持性SQL脚本。jbpm是一个强大的业务流程管理(BPM)和工作流系统,它允许开发者设计、执行、...
4. **jbpm.jpdl.oracle.sql**:Oracle数据库以其强大的企业级功能而著名,适用于大型企业应用。jbpm.jpdl.oracle.sql脚本专门设计用于在Oracle数据库上建立jbpm的数据结构,为在Oracle数据库上运行jbpm提供支持。 5...
jbpm.mysql.create.sql jbpm mysql建表语句
### JBPM4 常用表结构及其说明 JBPM4是JBPM(Java Business Process Model)的一个版本,主要用于提供业务流程管理的功能。它通过一组数据库表来支持工作流的执行与跟踪。本文将详细介绍JBPM4中的常用表结构及其...
它包含了部署的`DBID`(作为外键,关联到`JBPM4_DEPLOYMENT`中的`DBID`)、对象名(OBJNAME)、键(KEY)、字符串值(STRINGVAL)以及整数值(LONGVAL)。这些信息可能包括配置参数或其他元数据。 ### 3. JBPM4_...
jBPM4作为该系列的一个版本,提供了一套完整的流程管理和执行框架,允许开发者构建灵活的工作流应用,以实现业务流程自动化。本指南由胡奇编写,旨在为开发者提供一个全面的参考,帮助他们快速学习和掌握使用jBPM4...
1 这个项目是maven-web项目 jdk1.6 2 项目有完善的spring和jbpm集成方法,jbpm版本是6,jbpm5和jbpm6版本差异较大,配置差异也很大,切记 3 用的数据库为mysql,在运行的时候,会...4 可以根据自己的项目自行集成。
jbpm4jbpm5是关于jbpm流程管理框架的专题,涵盖了jbpm4和jbpm5两个主要版本。jbpm是一个开源的工作流管理系统,用于帮助开发者实现业务流程自动化。以下是基于给定文件的信息,深入解析jbpm4和jbpm5的知识点: 1. *...
jbpm3.2 mysql修改可用建表语句 在mysql命令行下使用:source D:1.sql
本工程在tomact6中调试通过,下载完毕后将database文件夹的数据文件附加到sqlserver2000数据中,将jbpm-console工程放到tomcat6中,并将tomcat-users.xml文件覆盖运行即可。
由于jbpm4.4没有提供SqlServer 相关建表语句,需要我们自己去建立,个人拿原来的sql文件修改了一下,希望对大家有用。。直接打开执行就可以了!!
这个"jbpm4案例源码"包含了jbpm4系统的核心组件和示例代码,帮助开发者深入理解jbpm4的工作原理和实践应用。《jBPM4工作流应用开发指南.pdf》这本书则进一步阐述了如何利用jbpm4来构建工作流应用。 jbpm4的核心功能...