现在的位置: 首页 > 操作系统 > 正文

SpringActiviti环境搭建之数据库创建

2020年02月10日 操作系统 ⁄ 共 1411字 ⁄ 字号 评论关闭

由于在开发工作流的时候,避免不了要保存一些数据和流程走向;所以在搭建Spring Activiti开发环境的时候需要把官方提供的23张表创建到我们的DB,后续的流程都会在这些表中记录。

1.创建代码如下:

@Testpublic 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

运行时流程变量数据表

本文永久更新链接地址:http://www.xuebuyuan.com/Linux/2017-03/141483.htm

以上就上有关SpringActiviti环境搭建之数据库创建的相关介绍,要了解更多Spring Activiti,Spring Activiti 环境搭建之数据库创建,编程,Linux编程,Linux Shell,Android,Android教程,JAVA,C语言,Python,HTML5内容请登录学步园。

抱歉!评论已关闭.