Java_activiti5_ rookie also to learn Activiti5 workflow _ The first knowledge of common service classes and data Sheets (ii)

Source: Internet
Author: User
Tags knowledge base

1 /**2 * The code listing uses the Processengines class to load the default process configuration file (Activiti.cfg.xml), and then obtains instances of each service component. 3 * Repositoryservice is primarily used for managing process resources, Runtimeservice is primarily used for process management during process runs, and Taskservice is primarily used to manage process tasks. 4 * Finally, Historicprocessinstance will record the process history of the work. 5      *  6 * Activiti.cfg.xml7 * |--processengineconfiguration-> Read parsing->processengine (built-in 7 services)8 * |--repositoryservice-|--taskservice-|
* |--identityservice-|--formservice-|9 * |--runtimeservice-|--managementservice-|
* |--historyservice-|Ten * One * 1, Repositoryservice: "Knowledge Base Service" A * The definition of each different version of the business process in Activiti requires the use of some definition files, deployment files and supporting data (such as BPMN2.0 XML files, form definition files, process definition image files, etc.), - * These files are stored in Activiti built-in Repository. The Repository service provides access to the Repository. - * the * 2, Runtimeservice: "Operation Service" - * in Activiti, each time a process definition is started, a corresponding instance of the process object is generated. - * Runtime Service provides functions such as start-up process, query process instance, set get process instance variable, etc. It also provides access to process deployment, process definition, and process instances. - * + * 3, Taskservice: "Mission Service" - * Each execution node in the business process definition in Activiti is called a task, and operations such as data access and state changes in the process need to be done in the task. + * The task Service provides actions related to user task and Form. It provides functions such as query, pick, finish, delete, and variable settings for run-time tasks. A * at * 4, Identityservice: "Identity Service" - * The user and group management features are built into the Activiti, and you must use the information of those users and groups to obtain the appropriate Task. - * The Identity Service provides management capabilities for users and groups in the Activiti system. - * - * 5, Managementservice: "Management Services" - * The Management Service provides management and maintenance capabilities for the Activiti process engine, which is not used in workflow-driven applications, and is used primarily for routine maintenance of activiti systems. in * - * 6, Historyservice: "History Service" to * The history service is used to obtain information about a running or completed process instance, unlike the process information obtained in the runtime service . + * Historical information contains persistent information that has been persisted and has been optimized for queries. - * the * 7, Formservice: "Form Service" * * Process and status tasks in Activiti can correlate business-related data. By using form Service, you can access the form data needed to start and complete tasks and render the form as needed. $ * Panax Notoginseng * Understand the naming of database tables: - * Activiti tables start with Act_, the second part is the two-letter identifier that represents the purpose of the table, and the purpose of the service corresponds to the API. the * 1, act_re_*: ' Re ' means repository, this prefix table contains the process definition and process static resources (pictures, rules, etc.); + * 2, act_ru_*: ' ru ' means runtime, these running tables, including process instances, tasks, variables, asynchronous tasks, and other running data, A * Activiti only saves this data during the process instance execution and deletes the records at the end of the process so the * The run-time table can always be very small and fast; + * 3, act_id_*: ' ID ' indicates identity, these tables contain identity information, such as users, groups and so on; - * 4, act_hi_*: ' Hi ' means history, these tables contain historical data, such as historical process examples, variables, tasks, etc.; $ * 5, Act_ge_*: General data for different scenarios; $ */

Java_activiti5_ rookie also to learn Activiti5 workflow _ The first knowledge of common service classes and data Sheets (ii)

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.