Environmental
JDK1.7
MySQL5.6
Tomcat7
the Eclipse-Luna
activiti 6.0
First, the concept
1, workflow (Workflow): is a series of interrelated, automated business activities or tasks. Workflow software, users simply fill out the form on computer-related, it will automatically run down in accordance with the defined process, an approver under will receive relevant information, and can be modified according to needs, track, manage, query , statistics, printing and so on, greatly improving efficiency.
2, BPMN i.e. Business Process Modeling and labeling (Business Process Model and Notation, BPMN ), describes the basic flow of symbols, including how those elements are combined into a business process diagram (Business Process Diagram).
BPMN is one of BPM and workflow modeling language standards.
3, Activiti is an open source workflow engine, which implements the BPMN 2.0 specification, can publish designed process definition, and the process by scheduling api.
Two, Activiti 6.0 Introduction
1.7 Large connector
RepositoryService: providing a series of management processes and deploy process definitions API.
RuntimeService: the management and control of process instances in the process is running.
TaskService: to manage process tasks, such as task reminders, create tasks and task completion.
IdentityService: API to provide data management process roles, these roles include the relationship between the data user groups, users, and they are.
ManagementService: Provides process engine management and maintenance services.
HistoryService: the process of historical operating data, including the query, delete the historical data.
FormService: Forms service.
2,28 tables
(1) act_ge_ generic data table, GE is the general abbreviation
(2) act_hi_ history data table, the history Hi is the abbreviation, the corresponding HistoryService interfaces
(3) act_id_ identity data table, id is an abbreviation identity, the corresponding IdentityService Interface
(4) act_re_ process storage table, Re is an abbreviation for the repository, the corresponding RepositoryService interfaces, storage process deployment and process definitions static data
(5) act_ru_ runtime data table, ru for abbreviation runtime, the corresponding RuntimeService interfaces and TaskService interfaces , and the process instance stored dynamic data such as user tasks
Second, the official net example
1, activiti-admin.war for managing web services (login user / password: admin / admin, URL: http : // localhost: 8080 / activiti-admin)
2, activiti-app.war used to test the sample web service (login user / password: admin / test, URL: http: // localhost: 8080 / activiti-app)
3, a group can directly manipulate the workflow engine REST API interface services activiti-rest.war Activiti provided (login user / password: kermit / kermit, URL: http: // localhost: 8080 / activiti-rest / docs / # /)
Third, the development environment to build
1, install eclipse plugin installed activiti
Plug-address: http: //download.eclipse.org/modeling/emf/updates/releases/
Successful installation diagram:
After the configuration process is created to save the process design
2, the introduction jar
Reference:
based workflow BPMN2.0 of (Workflow
BPMN2.0 specification
Activiti6 simple tutorial
Activiti official user manual
software download