JBPM的ORACLE脚本
create table JBPM4_DEPLOYMENT (
DBID_ number(19,0) not null,
NAME_ clob,
TIMESTAMP_ number(19,0),
STATE_ varchar2(255 char),
primary key (DBID_)
);
create table JBPM4_DEPLOYPROP (
DBID_ number(19,0) not null,
DEPLOYMENT_ number(19,0),
OBJNAME_ varchar2(255 char),
KEY_ varchar2(255 char),
STRINGVAL_ varchar2(255 char),
LONGVAL_ number(19,0),
primary key (DBID_)
);
create table JBPM4_EXECUTION (
DBID_ number(19,0) not null,
CLASS_ varchar2(255 char) not null,
DBVERSION_ number(10,0) not null,
ACTIVITYNAME_ varchar2(255 char),
PROCDEFID_ varchar2(255 char),
HASVARS_ number(1,0),
NAME_ varchar2(255 char),
KEY_ varchar2(255 char),
ID_ varchar2(255 char) unique,
STATE_ varchar2(255 char),
SUSPHISTSTATE_ varchar2(255 char),
PRIORITY_ number(10,0),
HISACTINST_ number(19,0),
PARENT_ number(19,0),
INSTANCE_ number(19,0),
SUPEREXEC_ number(19,0),
SUBPROCINST_ number(19,0),
PARENT_IDX_ number(10,0),
primary key (DBID_)
);
create table JBPM4_HIST_ACTINST (
DBID_ number(19,0) not null,
CLASS_ varchar2(255 char) not null,
DBVERSION_ number(10,0) not null,
HPROCI_ number(19,0),
TYPE_ varchar2(255 char),
EXECUTION_ varchar2(255 char),
ACTIVITY_NAME_ varchar2(255 char),
START_ timestamp,
END_ timestamp,
DURATION_ number(19,0),
TRANSITION_ varchar2(255 char),
NEXTIDX_ number(10,0),
HTASK_ number(19,0),
primary key (DBID_)
);
create table JBPM4_HIST_DETAIL (
DBID_ number(19,0) not null,
CLASS_ varchar2(255 char) not null,
DBVERSION_ number(10,0) not null,
USERID_ varchar2(255 char),
TIME_ timestamp,
HPROCI_ number(19,0),
HPROCIIDX_ number(10,0),
HACTI_ number(19,0),
HACTIIDX_ number(10,0),
HTASK_ number(19,0),
HTASKIDX_ number(10,0),
HVAR_ number(19,0),
HVARIDX_ number(10,0),
MESSAGE_ clob,
OLD_STR_ varchar2(255 char),
NEW_STR_ varchar2(255 char),
OLD_INT_ number(10,0),
NEW_INT_ number(10,0),
OLD_TIME_ timestamp,
NEW_TIME_ timestamp,
PARENT_ number(19,0),
PARENT_IDX_ number(10,0),
primary key (DBID_)
);
create table JBPM4_HIST_PROCINST (
DBID_ number(19,0) not null,
DBVERSION_ number(10,0) not null,
ID_ varchar2(255 char),
PROCDEFID_ varchar2(255 char),
KEY_ varchar2(255 char),
START_ timestamp,
END_ timestamp,
DURATION_ number(19,0),
STATE_ varchar2(255 char),
ENDACTIVITY_ varchar2(255 char),
NEXTIDX_ number(10,0),
primary key (DBID_)
);
create table JBPM4_HIST_TASK (
DBID_ number(19,0) not null,
DBVERSION_ number(10,0) not null,
EXECUTION_ varchar2(255 char),
OUTCOME_ varchar2(255 char),
ASSIGNEE_ varchar2(255 char),
PRIORITY_ number(10,0),
STATE_ varchar2(255 char),
CREATE_ timestamp,
END_ timestamp,
DURATION_ number(19,0),
NEXTIDX_ number(10,0),
SUPERTASK_ number(19,0),
primary key (DBID_)
);
create table JBPM4_HIST_VAR (
DBID_ number(19,0) not null,
DBVERSION_ number(10,0) not null,
PROCINSTID_ varchar2(255 char),
EXECUTIONID_ varchar2(255 char),
VARNAME_ varchar2(255 char),
VALUE_ varchar2(255 char),
HPROCI_ number(19,0),
HTASK_ number(19,0),
primary key (DBID_)
);
create table JBPM4_ID_GROUP (
DBID_ number(19,0) not null,
DBVERSION_ number(10,0) not null,
ID_ varchar2(255 char),
NAME_ varchar2(255 char),
TYPE_ varchar2(255 char),
PARENT_ number(19,0),
primary key (DBID_)
);
create table JBPM4_ID_MEMBERSHIP (
DBID_ number(19,0) not null,
DBVERSION_ number(10,0) not null,
USER_ number(19,0),
GROUP_ number(19,0),
NAME_ varchar2(255 char),
primary key (DBID_)
);
create table JBPM4_ID_USER (
DBID_ number(19,0) not null,
DBVERSION_ number(10,0) not null,
ID_ varchar2(255 char),
PASSWORD_ varchar2(255 char),
GIVENNAME_ varchar2(255 char),
FAMILYNAME_ varchar2(255 char),
BUSINESSEMAIL_ varchar2(255 char),
primary key (DBID_)
);
create table JBPM4_JOB (
DBID_ number(19,0) not null,
CLASS_ varchar2(255 char) not null,
DBVERSION_ number(10,0) not null,
DUEDATE_ timestamp,
STATE_ varchar2(255 char),
ISEXCLUSIVE_ number(1,0),
LOCKOWNER_ varchar2(255 char),
LOCKEXPTIME_ timestamp,
EXCEPTION_ clob,
RETRIES_ number(10,0),
PROCESSINSTANCE_ number(19,0),
EXECUTION_ number(19,0),
CFG_ number(19,0),
SIGNAL_ varchar2(255 char),
EVENT_ varchar2(255 char),
REPEAT_ varchar2(255 char),
primary key (DBID_)
);
create table JBPM4_LOB (
DBID_ number(19,0) not null,
DBVERSION_ number(10,0) not null,
BLOB_VALUE_ blob,
DEPLOYMENT_ number(19,0),
NAME_ clob,
primary key (DBID_)
);
create table JBPM4_PARTICIPATION (
DBID_ number(19,0) not null,
DBVERSION_ number(10,0) not null,
GROUPID_ varchar2(255 char),
USERID_ varchar2(255 char),
TYPE_ varchar2(255 char),
TASK_ number(19,0),
SWIMLANE_ number(19,0),
primary key (DBID_)
);
create table JBPM4_PROPERTY (
KEY_ varchar2(255 char) not null,
VERSION_ number(10,0) not null,
VALUE_ varchar2(255 char),
primary key (KEY_)
);
create table JBPM4_SWIMLANE (
DBID_ number(19,0) not null,
DBVERSION_ number(10,0) not null,
NAME_ varchar2(255 char),
ASSIGNEE_ varchar2(255 char),
EXECUTION_ number(19,0),
primary key (DBID_)
);
create table JBPM4_TASK (
DBID_ number(19,0) not null,
CLASS_ char(1 char) not null,
DBVERSION_ number(10,0) not null,
NAME_ varchar2(255 char),
DESCR_ clob,
STATE_ varchar2(255 char),
SUSPHISTSTATE_ varchar2(255 char),
ASSIGNEE_ varchar2(255 char),
FORM_ varchar2(255 char),
PRIORITY_ number(10,0),
CREATE_ timestamp,
DUEDATE_ timestamp,
PROGRESS_ number(10,0),
SIGNALLING_ number(1,0),
EXECUTION_ID_ varchar2(255 char),
ACTIVITY_NAME_ varchar2(255 char),
HASVARS_ number(1,0),
SUPERTASK_ number(19,0),
EXECUTION_ number(19,0),
PROCINST_ number(19,0),
SWIMLANE_ number(19,0),
TASKDEFNAME_ varchar2(255 char),
primary key (DBID_)
);
create table JBPM4_VARIABLE (
DBID_ number(19,0) not null,
CLASS_ varchar2(255 char) not null,
DBVERSION_ number(10,0) not null,
KEY_ varchar2(255 char),
CONVERTER_ varchar2(255 char),
HIST_ number(1,0),
EXECUTION_ number(19,0),
TASK_ number(19,0),
LOB_ number(19,0),
DATE_VALUE_ timestamp,
DOUBLE_VALUE_ double precision,
CLASSNAME_ varchar2(255 char),
LONG_VALUE_ number(19,0),
STRING_VALUE_ varchar2(255 char),
TEXT_VALUE_ clob,
EXESYS_ number(19,0),
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;
关注流行国外网站
facebook:http://www.fb-on.com
facebook官网:http://www.facebookzh.com
facebook:http://www.cn-face-book.com
youtube:http://www.youtubezh.com
twitter:http://www.twitterzh.com
JBPM的ORACLE脚本的更多相关文章
- oracle 脚本创建数据库的相关文章,教程,源码
学步园推荐专题: 关于oracle 脚本创建数据库的相关文章 文章标题 文章链接 文章简介 oracle命令行创建数据库的示例脚本 http://www.xuebuyuan.com/964527.ht ...
- mysql脚本手动修改成oracle脚本
今天有一个需求,立了一个新项目,新项目初步定了使用了现有的框架,但数据库要求由原来的mysql改成oracle,所以原来的基础版本的数据库脚本就需要修改成符合oracle的脚本,修改完成后,总结了一下 ...
- mysql数据库脚本改为oracle脚本
前段时间公司项目数据库需要从mysql转为oracle,所以需要修改下原有的mysql脚本. 有两种方式:第一种,使用工具进行两种数据库的转换.第二种,手动修改数据库脚本. 第二种方法很笨,但能学习下 ...
- LR之Oracle 2tier协议录制Oracle脚本
在一次测试中,需用到sql去查询Oracle数据,并去使用改数据时,查阅各种资料终于实现LoadRunner对Oracle数据库进行操作,分享给大家,也与大家共同进步~ 同时也可用Loadrunn ...
- 第七节 JBPM 中的脚本语言
1.JPDL表达式 2.动作:数据库操作例子 3.路由:transaction一个流程之间的指向 4.BeanShell脚本语言 例子: 发布到数据库中才能做一个测试类
- 使用oracle脚本生成VO和Dao
话不多说直接上代码. 生成VO的脚本: SELECT '/**' || T2.COMMENTS || '*/ @Column(name="' || T1.COLUMN_NAME || '&q ...
- Oracle脚本笔记
//创建一个表create table 表名(字段名1 varchar2(20) not null);//多个用 , 隔开//添加字段alter table 表名add (字段名2 varchar2 ...
- powerdesiginer 生成oracle脚本问题,一步解决
select * from tablename时, 总是提示错误:table or view does not exits 但是在user_tables中却可以看到刚建立的表. 原因是powerDes ...
- oracle脚本执行多条语句报错
情况一: create table edu_group_parent ( group_id ) primary key not null, group_name ), group_url ), gro ...
随机推荐
- iOS 或者Android调用vue.js 里面的方法
1.原生调用vue.js 某个vue组件下的方法. 比如**.vue里面有个这样的方法: 如果这样的话,在iOS或者Android里面是调用不了这个ajax方法的. 需要在**.vue (我的版本是v ...
- Mybatis plus 高级
最近项目重构 dao层使用的Mybatis plus,有必要总结下. Mybatis plus 会自动维护Mybatis 以及 MyBatis-Spring 相关依赖 所以在构建项目时候 只需要引入 ...
- Docker高级使用
Docker卸载应用程序 先删除容器,在删除镜像 查询容器 docker ps –a 使用容器id删除容器 docker rm 18e672ecd8ed 查询镜像 docker images 使用镜像 ...
- ASP.NET动态生成GridView的使用
根据DataTable动态生成包含checkbox的GridView,其中DataTable中对应checkbox那一列的值必须为bool值. public static GridView Dynam ...
- scala学习手记31 - Trait
不知道大家对java的接口是如何理解的.在我刚接触到接口这个概念的时候,我将接口理解为一系列规则的集合,认为接口是对类的行为的规范.现在想来,将接口理解为是对类的规范多少有些偏颇,更恰当些的观点应该是 ...
- UIElement.IsMouseCaptured属性的应用
一个只读属性,该值描述了此元素是否捕获到了鼠标,如果该值为true,则说明此元素捕获到了鼠标:否则,未捕获到(例如:当鼠标进入到一个Button的可视化范围之内,当Button按钮外观效果发生了变化时 ...
- Selenium with Python 007 - Cookie处理
Webdriver 读取.添加.删除cookie信息基本用法 获得Cookie信息:driver.get_cookies() 添加Cookie信息:driver.add_cookie(cookie_d ...
- Ajax基础(五)--封装库
jQuery ajax请求的基本语法: 一.封装为对象: ajax.txt代码: {"id":"102","username":" ...
- LightOJ - 1341唯一分解定理
唯一分解定理 先分解面积,然后除2,再减去面积%长度==0的情况,注意毯子不能是正方形 #include<map> #include<set> #include<cmat ...
- Pro C/C++ 编程中值得注意的问题
1.宿主字符串存储Oracle自动补零问题. EXEC SQL BEGIN DECLARE SECTION; unsigned char liId[25]; EXEC SQL END DECLARE ...