当前位置:网站首页>Understand activity workflow
Understand activity workflow
2022-07-29 05:01:00 【Blue sky ⊙ white clouds】
One 、 What is workflow
Take leave for example , Now the leave process of most companies is like this
Employees call ( Or online chat ) Apply to the superior for leave —— The superior verbally agreed —— The superior recorded the leave —— Submit the leave record to the company at the end of the month —— The company will enter the leave into the computer
The leave process of companies using workflow technology is like this
Employees log in to the system with an account —— Click leave —— The superior logs in to the system and clicks allow
That's it , A leave process is over
Someone will ask. , The superior doesn't have to submit leave records to the company ? Companies don't have to enter records into computers ? The answer is , With . But all this work will run automatically after the superior clicks allow !
This is workflow technology .
Georgakopoulos The workflow definition given is : Workflow is to organize a group of tasks to complete a certain business process : The trigger sequence and trigger conditions of the task are defined , Each task can be completed by one or more software systems , It can also be done by one or a group of people , It can also be done by one or more people working with the software system .

Two 、 The advantages of Workflow Technology
From the example above , It's easy to see
Workflow system , Realize the automation of work flow , Improve the efficiency of enterprise operation 、 Improve the utilization of enterprise resources 、 Improve the flexibility and adaptability of enterprise operation 、 Improve the efficiency of quantitative assessment business processing 、 Reduce waste ( Time is money ).
And manual workflow , On the one hand, it is unable to effectively track the whole process 、 understand , On the other hand, human error and time delay will inevitably lead to low efficiency , In particular, it is impossible to make quantitative statistics , Not conducive to query 、 Statement and performance evaluation .
3、 ... and 、 Java Why would developers learn to Activity workflow
stay Java field ,JBPM and Activity It's two mainstream workflow systems , and Activity The emergence of will undoubtedly replace JBPM(Activity The developers of are from Jbpm Developers come out of ).
Four 、 Activity Workflow learning points
1、1 A plug-in
stay Eclipse Install in Activity plug-in unit , So that you can be in Eclipse Draw in Activity Workflow diagram
2、1 Engines
ProcessEngine object ,Activity Workflow engine . This is a Activiti The core of the work . Responsible for generating various instances and data of process runtime 、 Monitor and manage the operation of processes .
All operations start with the get engine , So we usually use the engine as a global variable
ProcessEngine processEngine =ProcessEngines.getDefaultProcessEngine();
- 1
3、1 Configuration files
activiti.cfg.xml.Activiti Core profile , Configure the basic parameters of the process engine creation tool and database connection pool parameters
4、5 Kinds of database tables
Activiti The backstage is supported by database , All watches use ACT_ start . The second part is a two letter sign indicating the purpose of the table . Uses and services API Corresponding .
ACT_RE_*: ‘RE’ Express repository. The prefixed table contains process definitions and process static resources ( picture , The rules , wait ).
ACT_RU_*: ‘RU’ Express runtime. These runtime tables , Include process instances , Mission , Variable , Asynchronous task , Wait for the data in operation . Activiti Save the data only during the process instance execution , These records are deleted at the end of the process . In this way, the runtime table can always be very small and fast .
ACT_ID_*: ‘ID’ Express identity. These tables contain identity information , Such as user , Group, etc .
ACT_HI_*: ‘HI’ Express history. These tables contain historical data , For example, historical process examples , Variable , Tasks, etc .
ACT_GE_*: General data , Used in different scenes , Such as storing resource files .
5、23 A watch
Different tables hold different kinds of data , There is a process definition table 、 Task node table 、 Process variable table 、 Task history table and so on .

6、5 term Service
Different Service Class corresponds to different functions .
such as TaskService, yes activiti Task service class . You can get task information from this class .
and HistoryService, It is activiti The query history information class . After a process is completed , This object provides us with query history information .
7、7 Basic operationsDesign flow chart ( Various components , If connected 、 User tasks 、 gateway )
Add, delete, modify and check the process definition
Add, delete, and modify process variables
Start process definition
Add, delete, change and check tasks
To complete the task
Historical information inquiry
Study 7 The basic operation only needs to be performed in JavaSE The next step is to execute , Of course , do web We should consider and SSH And so on . Of course , Only basic operation can learn , Comprehensive development is not difficult .
边栏推荐
- Common current limiting methods
- Un7.28: common commands of redis client.
- 电脑无法打开excel表格怎么办?excel打不开的解决方法
- What are the core features of the digital transformation of state-owned construction enterprises?
- < El table column> place multiple pictures
- JS daily question (10)
- Software test interview questions (4)
- Numpy basic learning
- 带你一文理解JS数组
- P1009 [noip1998 popularization group] sum of factorials
猜你喜欢

Glory 2023 push, push code ambubk

Data Lake: spark, a distributed open source processing engine
带你搞懂 Kubernetes 集群中几种常见的流量暴露方案

Use jupyter (2) to establish shortcuts to open jupyter and common shortcut keys of jupyter

Mapper agent development

Recommendation system of online education

WPS如何进行快速截屏?WPS快速截屏的方法

Command line interactive tools (latest version) inquirer practical tutorial

What are the core features of the digital transformation of state-owned construction enterprises?

新产品上市最全推广方案
随机推荐
Mysql各版本下载地址及多版本共存安装
What servers are needed to build mobile app
使用更灵活、更方便的罗氏线圈
Five correlation analysis, one of the most important skills of data analysts
JS daily question (12)
Quick start JDBC
[untitled]
What are the core features of the digital transformation of state-owned construction enterprises?
iOS面试准备 - ios篇
Let you understand several common traffic exposure schemes in kubernetes cluster
带你搞懂 Kubernetes 集群中几种常见的流量暴露方案
Command line interactive tools (latest version) inquirer practical tutorial
stack和queue和优先级队列(大堆和小堆)模拟实现和仿函数讲解
AttributeError: ‘module‘ object has no attribute ‘create_connection‘
Reveal安装配置调试
Use annotation test in idea
MySQL time calculation function
How to build a mobile studio network?
How to debug UDP port
Recyclerview switches the focus up and down through the dpad key. When switching to the control outside the interface, the focus will jump left and right