Activiti workflow from entry to be buried: Workflow Introduction

Article Source Hosted: https: //github.com/OUYANGSIHAI/Activiti-learninig
welcome star! ! !

A, activiti Introduction

Activiti5By Alfresco software in the May 17, 2010 release of Business Process Management (BPM) framework, which is covered by the Business Process Management, an open source in the field of workflow, collaboration services, flexible, easy to expand the executable process language framework. Activiti BPM based on Apache open source licensing platform, is Tom Baeyens, founder of JBoss jBPM project architect, it offers features that eclipse plug-in, developers can plug directly by a business flow chart drawing.

Currently, Activiti5 in 5.22版本a version with most of this tutorial is to explain using this version, the latest version to 7.0版本.

Before starting the tutorial, we need to clear some of the following concepts and knowledge that can help us develop a better understanding of the work flow.

Second, the workflow engine

ProcessEngineObject, which is Activiti work 核心. Responsible for generating a variety of examples and data to run, monitor and manage the flow of processes running.

Baidu is more popular with the words: It is a car engine, like a car, then do look beautiful, if there is an engine problem just a decoration. Like elastic application system performance aspects of engine speed, accelerating to 100 km requires one hour (business process procedures need to be changed six months of modification) also applauded car? Engine stalling at every turn (because of procedural problems of logic into an infinite loop) car dare to open it?

Three, BPMN

BPMN is used in a document workflow Activiti primarily used to describe the basic symbols of the business process, can be composed of various components using a business flow diagram of FIG accordance with this whole business is to go, in fact, opened with xml format, It is a xml文件.

The following is a schematic assembly bpmn

Pictures .pngPictures .png

Fourth, the database

When we conduct business process development, and will generate a lot of data, then these data are placed where it?

Yes, it is actually stored in the database.

In the background Activiti workflow is supported database, all the tables are to ACT_开头use these database tables, it is possible to preserve data for the entire business process, and then use these data to develop a different business.

Database of intentions

Pictures .pngPictures .png

What follows is some basic explanation of these tables 这些可以先不看,等看完后面的教程后再回过头来看,你会发现其实很简单的.

  • Process Repository rule table

1) act_re_deployment deployment information in Table
2) act_re_model process design model deployment Table
3) act_re_procdef flow definition data table

  • Runtime database table

1) act_ru_execution runtime execution flow chart Example
2) run-time process information act_ru_identitylink person table, the main task of the storage node and participant
3) act_ru_task runtime task node table
4) act_ru_variable run-time process variable data table

  • Historical database table

1) act_hi_actinst history node Table
2) act_hi_attachment history annex table
3) act_hi_comment historical views Table
4) act_hi_identitylink historical process personnel Table
5) act_hi_detail historical details table provide historical variable query
6) act_hi_procinst historical process instance Table
7) act_hi_taskinst historical examples of mission table
8) act_hi_varinst history variable table

  • Organization Table

1) act_id_group user group information table
2) act_id_info extended user information table
3) act_id_membership users and groups correspondence information table
4) act_id_user user information table

These tables are used rarely, because we usually do own a rights management, so it will not use activiti brought their own table.

  • Universal Data Table

1) act_ge_bytearray binary data of Table
2) act_ge_property attribute data table storage engine entire process level data, initialization table structure, default insert three records.

Two tables of data that can not be arbitrarily delete, delete might go wrong.

V. Summary

The concept of workflow to introduce so much more Quguan network view, with a next section 入门的实例to explain the workflow.

Articles have inappropriate, please correct me, if you like micro-letters to read, you can also concerned about my micro-channel public number : , 好好学javaaccess to quality learning resources.

Guess you like

Origin sihailoveyan.iteye.com/blog/2441705