Activiti data table design and activiti data design
Activiti data tables are divided into five parts:
Common Data Tables, process storage tables, identity data tables, runtime data tables, and historical data tables
1. general data table
Starting with ACT_GE
Resource table-act_ge_btyearray: used to save process engine-related resources, such as strings, process file content, and process images.
Attribute Table-act_ge_property: abstracts the attribute into a key-value pair. The default attributes historyLevel, next. dbid, schema. history, and schema. version are added when the process engine is initialized.
2. repository table
Starting with ACT_RE
Deployment data table-act_re_deployment: stores deployment information, and resources are saved to act_ge_btyearray.
Process Definition table-act_re_procdef: if the process file (. bpmn or. bpmn1_xml), in addition to saving the content to the resource table, the parsed process definition data is written to the table.
3. identity table
Starting with ACT_ID
User table-act_id_user: save user information.
User information table-act_id_info: saves user account and user information data. The information type (type _) can be account, userinfo, or null.
User Group Table-act_id_group: Save User Group information.
Relational table-act_id_membership: stores many-to-many relationships between users and user groups. However, the user_id and group_id fields have the fk constraint and must be associated with the user table and user group table.
4. runtime data table
Starting with ACT_RU
Process instance (execution flow) Table-act_ru_execution: when the process starts, an instance is generated and the corresponding execution flow is generated. If a process instance has only one execution flow, the table has one data entry, indicating both the execution flow and the process instance.
Process Task table-act_ru_task: Save the task data generated during the process execution.
Process parameter table-act_ru_variable: stores parameters in the process, including process instance parameters, execution flow parameters, and task parameters.
Process and identity relationship table-act_ru_membership: stores the relationship between users, user groups, and process data.
Work data table-act_ru_job: Save the work that needs to be performed regularly or repeatedly.
Event Description table-act_ru_event_subscr: stores the data generated by a process arriving at an event node, and determines the triggering of a process event.
5. history data table
Starting with ACT_HI
Process instance table-act_hi_procinst: written at process startup.
Process schedule-act_hi_detail: record the parameters or form data during the process execution.
History task table-act_hi_taskinst: written when the process reaches a task node.
History behavior table-act_hi_actinst: records the instances of each process activity. A process activity is recorded as a data record.
Attachment table-act_hi_attachment: Save the added attachment
Comment table-act_hi_comment: Save the added comment