activiti7 research

Activiti7 research

Table Design

25 tables (created automatically) = start construction of the table (only when running a new calling process instance) 17 + 8 sheets history table.

 

 

Process Repository rule table

ACT_RE_ *: 'RE' represents the repository. The prefix table contains process definitions and process static resources (images, rules, etc.)

   1) act_re_deployment deployment information table

   2) act_re_model model deployment process design table (for activiti dynamic deployment, XML mapping process documentation)

   3) act_re_procdef flow definition data table

  

Runtime database table

ACT_RU_ *: 'RU' represent runtime. These run-time table comprising a process instance, task data, variables, asynchronous tasks, like running. Activiti only stores the data during the execution of a process instance, these records will be deleted at the end of the process.

   1) process execution runtime instance table act_ru_execution

   2) run-time process information act_ru_identitylink staff table, the main task of storage nodes and participants

   3) act_ru_task runtime task node table

   4) act_ru_variable run-time process variable data table

       5) Table badmail operation - the number of retries exceeds the job failure ACT_RU_DEADLETTER_JOB

       6) run-time events ACT_RU_EVENT_SUBSCR

       7) Run-time job ACT_RU_JOB

       8) New ACT_RU_SUSPENDED_JOB Work Stoppages Table 6.0 runtime

       9) Runtime new ACT_RU_TIMER_JOB timer job table 6.0

       10) act_ru_integration ??? I do not know what the new table 7.0

  

  

Universal Data Table

ACT_GE_ *: general data for different scenarios, such as storage resource file.

1) act_ge_bytearray binary data table

2) act_ge_property attribute data table storage engine entire process level data, initialization table structure, default insert three records

 

Historical database table

(ACT_HI_ *: 'HI' represents a history These tables contain historical data such as historical process instances, variables, tasks, etc...)

1) act_hi_actinst history node table

2) act_hi_attachment history table accessories

3) act_hi_comment history table views

4) act_hi_identitylink historical process personnel table

5) act_hi_detail historical details table provide historical query variables

6) act_hi_procinst historical process instance table

7) act_hi_taskinst historic task instance table

8) act_hi_varinst history variable table

 

other

General Event Log ACT_EVT_LOG process engine record table

Dynamic change information 6.0 ACT_PROCDEF_INFO new process definition

Table difference activiti7 and previous versions

Activiti6 fore and aft ends are not separated, and designed to verify the user & binding couples of the group, in the case of carrying the functional group does not meet the business user & requirements (say substantially not satisfied), as enterprises need to decouple own user & group & permissions check, which can take more time and energy, and which kept some of the pit (open source software are common, you know), and the code is older, use the command mode on the package implementation, leading to extension a lot of trouble. But activiti6 advantage is that there are ready-made interface functions. avtiviti7 to the natural spring of micro-par service, before and after the end of the separation, easy expansion, the disadvantage is less information, many functions need to re-implement themselves.

1. The following table has been abandoned:

ACT_ID_ *: 'ID' represents identity. These tables contain identity information, such as user, group, organization management. Because components comes too simple function has been enabled activi7. Activiti7 using spring security and safety certification.

Organization Table

1) act_id_group user group information table

2) act_id_info extended user information table

3) act_id_membership users and groups correspondence information table

4) act_id_user user information table

 

The core api interfaces and objects

ProcessEngine

Abstraction process engine, you can get all the services required by such

 

Service (Service) class

By ProcessEngine acquisition, Activiti will be a different life cycle in different service packages Service, including the definition, deployment, operation. Available service information related to the life cycle through the service class.

 

TaskService

During the process operation, each task associated operator interface node, such as complete, delete, delegate the like.

 

RepositoryService

Process definition and deployment of storage-related services.

 

RuntimeService

Processes running when related services, according to the process as well start the process instance startProcessInstanceByKey.

HistoryService

History Services Interface

service and previous versions of the difference Aitivit7

Removed the following services

FormService : Form Service , used to read and process the form data tasks related

IdentityService : Identity Service , you can manage, query the user, the relationship between the group

Activiti core object

ProcessDefinition correspondence table act_re_procdef query

Execution ProcessInstance table corresponding to the query

Task task list

Query correspondence table act_re_deployment query

ProcessDefinition

ProcessDefinitionQuery

The basic call flow

 

Development steps

 

Demo

Demo Project Address: https://github.com/tanglijiong/activiti7.git

请假申请—>提交请假表单-->上级1审批à上级2审批->查看流程--->查看任务列表

 

其他资料

BPMN2.0资料: https://www.jianshu.com/p/a8a21870986a

Activity7官方文档: https://activiti.gitbook.io/activiti-7-developers-guide/

Activity7推荐的BPMN在线设计器:https://demo.bpmn.io

发布了14 篇原创文章 · 获赞 4 · 访问量 2740

Guess you like

Origin blog.csdn.net/www_tlj/article/details/102474354