1. History tasks of activiti are stored in separate tables without any external associations between tables. These tables include:
1. operation status record of the history act_hi_actinst Process
2, act_hi_attachment
3. act_hi_comment process Comment
4. act_hi_detail process details
5. act_hi_identitylink Process Identity relationship
6. History of act_hi_procinst
7. Overview of act_hi_taskinst history tasks
8. Parameters in the act_hi_varinst history Flow
Ii. historyservice is used to query historical data tables, including:
1, historyservice. createhistoricactivityinstancequery (); // query the act_hi_actinst table
2, historyservice. createhistoricdetailquery (); // query the act_hi_detail table
3, historyservice. createhistoricprocessinstancequery (); // query the act_hi_procinst table
4, historyservice. createhistorictaskinstancequery (); // query the act_hi_taskinst table
5, historyservice. createhistoricvariableinstancequery (); // query the act_hi_varinst table
Iii. Check whether the query process is complete:
String id = historyservice. createhistoricprocessinstancequery ()
. Finished (). singleresult (). GETID (). tostring (); // The finished () process. In the database, the end_act_id value indicates that the process has ended.