Java_Activiti5 _ cainiao also learns Activiti5 workflow _ first to learn common service classes and data tables (2), activiti5 workflow tutorial
1/*** in the code list, use the ProcessEngines class to load the default Process configuration file activiti. cfg. xml, and then obtain the instances of each service component. 3 * RepositoryService is mainly used to manage process resources. RuntimeService is mainly used to manage processes when processes run, and TaskService is mainly used to manage process tasks. 4 * at last, HistoricProcessInstance records the workflow history. 5*6 * activiti. cfg. xml 7 * | -- ProcessEngineConfiguration-> Read resolution-> ProcessEngine (7 built-in services) 8 * | -- RepositoryService-| -- TaskService-|
* | -- IdentityService-| -- FormService-| 9 * | -- RuntimeService-| -- ManagementService-|
* | -- HistoryService-| 10*11*1. RepositoryService: [Knowledge Base Service] 12 * Definitions of business flows of different versions of Activiti need to be used, deployment files and support data (such as BPMN2.0 XML files, form definition files, process definition image files, etc.), 13 * these files are stored in Activiti's built-in Repository. The Repository Service provides an Access Service for repository. 14*15*2. RuntimeService: [run Service] 16 * In Activiti, a corresponding process object instance is generated every time a process definition is started. 17 * The Runtime Service provides functions such as starting the process, querying process instances, and setting and obtaining process instance variables. It also provides access services for process deployment, process definition, and process instances. 18*19*3. TaskService: [Task Service] 20 * In Activiti, each execution node in the business process definition is called a Task, which accesses data in the process, status Change and other operations must be completed in the Task. 21 * Task Service provides operations related to user tasks and forms. It provides functions such as task query, collection, completion, deletion, and variable setting during running. 22*23*4. IdentityService: [Identity Service] 24 * Activiti has built-in user and group management functions. You must use the user and group information to obtain the corresponding Task. 25 * Identity Service provides the ability to manage users and groups in the Activiti system. 26*27*5. ManagementService: [Management Service] 28 * Management Service provides Management and maintenance functions for the Activiti process engine. These functions are not used in workflow-driven applications, it is mainly used for routine maintenance of Activiti systems. 29*30*6. HistoryService: [historical Service] 31 * History Service is used to obtain information about a running or completed process instance, which is different from the process information obtained in the Runtime Service, 32 * historical information contains permanent information that has been persistently stored and has been optimized for query. 33*34*7. FormService: [Form service] 35 * Activiti processes and status tasks can be associated with business-related data. You can use Form Service to access the Form data required to start and complete the task and render the Form as needed. 36*37 * Understand the name of a database table: 38 * Activiti tables start with ACT _, and the second part is the two-letter identifier indicating the purpose of the table, the purpose also corresponds to the Service API. 39*1. act_re _ *: 'Re' indicates repository. the table with the prefix contains the process definition and static process resources (images, rules, and so on ); 40*2. act_ru _ *: 'ru 'indicates runtime. These running tables include the process instance, task, variable, asynchronous task, and other running data, 41 * Activiti only saves the data during the execution of the Process instance and deletes the records at the end of the process, so that the 42 * runtime table can be kept very fast; 43*3. act_id _ *: 'id' indicates identity. These tables contain identity information, such as users and groups. 44*4. act_hi _ *: 'Hi' indicates history, these tables contain historical data, such as historical process instances, variables, and tasks. 45*5. act_ge _ *: common data for different scenarios. 46 */