时间:2021-07-01 10:21:17 帮助过:21人阅读
1.创建代码如下:
@Test
public void createactivityTable(){
ProcessEngineConfiguration p = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration();
p.setJdbcDriver("com.mysql.jdbc.Driver");
p.setJdbcUrl("jdbc:mysql://localhost:3306/activity?useUnicode=true&characterEncoding=utf-8");
p.setJdbcUsername("root");
p.setJdbcPassword("123");
p.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
p.buildProcessEngine();
}
2.运行无误之后打开mysql对应的数据库可以看到23张表已经创建完毕:

3.关于23表的作用如下所示:
|
序号 |
表名 |
说明 |
|
1 |
act_ge_bytearray |
二进制数据表 |
|
2 |
act_ge_property |
属性数据表存储整个流程引擎级别的数据,初始化表结构时,会默认插入三条记录, |
|
3 |
act_hi_actinst |
历史节点表 |
|
4 |
act_hi_attachment |
历史附件表 |
|
5 |
act_hi_comment |
历史意见表 |
|
6 |
act_hi_identitylink |
历史流程人员表 |
|
7 |
act_hi_detail |
历史详情表,提供历史变量的查询 |
|
8 |
act_hi_procinst |
历史流程实例表 |
|
9 |
act_hi_taskinst |
历史任务实例表 |
|
10 |
act_hi_varinst |
历史变量表 |
|
11 |
act_id_group |
用户组信息表 |
|
12 |
act_id_info |
用户扩展信息表 |
|
13 |
act_id_membership |
用户与用户组对应信息表 |
|
14 |
act_id_user |
用户信息表 |
|
15. |
act_re_deployment |
部署信息表 |
|
16. |
act_re_model |
流程设计模型部署表 |
|
17 |
act_re_procdef |
流程定义数据表 |
|
18 |
act_ru_event_subscr |
throwEvent、catchEvent时间监听信息表 |
|
19 |
act_ru_execution |
运行时流程执行实例表 |
|
20 |
act_ru_identitylink |
运行时流程人员表,主要存储任务节点与参与者的相关信息 |
|
21 |
act_ru_job |
运行时定时任务数据表 |
|
22 |
act_ru_task |
运行时任务节点表 |
|
23 |
act_ru_variable |
运行时流程变量数据表 |
【原】Spring activiti 环境搭建之数据库创建
标签:mysql create proc creat 扩展 event tin 历史 task