Activiti reference 5-Historical Tasks

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.