Spring activiti: springboot integrates activiti workflow engine @ with source code

Time:2022-4-2

preface

At present, many open source platforms in the market do not integrate workflow. Even if they do, they are expensive commercial versions. Looking at the estimation of this article, we also understand the market. It must not be cheap. My rapid development platform integrates workflow in the basic functions of the system (user management, Department Management…). You can directly use it to develop ERP, OA, CRM and other enterprise applications without worrying about how to spend a lot of time integrating workflow. Bloggers are individual developers. I have studied workflow for several years. I vaguely remember that the first time I wrote workflow was used in the car application business of a Provincial Bureau in Jiangsu. At that time, I was young and energetic, but my ability was limited. I stayed up for dozens of nights and came out. Even if I came out, the code was very messy. Later, I also participated in the development of workflow in several systems. At present, this set is extracted separately and made pluggable, which can be easily integrated into your program. Let’s explore.

1、 Project form

Springboot + Vue + activiti integrates activiti online editor, rapid development platform and pluggable workflow services.

2、 Project introduction

The project has the functions of user management, department management, code generation, system supervision, report, large screen display, business approval and so on. The function is too powerful. You can only introduce the rough ore. what you see is what you get. Let’s experience it.

3、 Workflow

1. Process model drawing

Enter the process model menu and create a process model. This involves gateway flow, and the flow conditions need to be set. Here, we take the lower branch for those over 30 years old and the upper branch for those under 30 years old. Click the branch line and set the circulation conditions$ {age<=30}。 After saving, we can click publish in the list.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Drawing process
Spring activiti: springboot integrates activiti workflow engine @ with source code

Set circulation conditions
Spring activiti: springboot integrates activiti workflow engine @ with source code

Insert picture description here

2. Process configuration

After publishing, the list of published models will be reached. Before enabling, we need to set nodes and associate specific documents.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Published model

The approver can directly specify the person, Department, department head, initiator and department head according to the role, which basically meets all the flow needs, and can set form variables.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Node settings

Set up the process form. At present, we have made a test form for asking for leave, and can authorize the corresponding roles to achieve user-defined permissions.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Set associated form

Start after setting.

3. Process submission

Fill out the leave form

Spring activiti: springboot integrates activiti workflow engine @ with source code

Fill in the form to initiate the application
Spring activiti: springboot integrates activiti workflow engine @ with source code

list

When submitting documents, the priority is divided into ordinary, important and urgent. Message notification can select station notification, SMS and email.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Submit Form

Documents can be withdrawn after submission.

Spring activiti: springboot integrates activiti workflow engine @ with source code

withdraw

Check the process flow progress.

Spring activiti: springboot integrates activiti workflow engine @ with source code

View the flow progress

You can also suspend and delete the process.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Hang

4. Process approval

When approving the list, the handler can process the document (reject or pass), or delegate others to do it.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Approval to do

Approved.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Insert picture description here

Entrust others to wait.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Entrust others to do

Enter the to do list after approval.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Done list

If you are over 30 years old, enter the following branches.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Process view

Approved.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Approved

5. To do information push

In station message push.

Spring activiti: springboot integrates activiti workflow engine @ with source code

Insert picture description here

summary

The above only shows the approval process function of the platform, but there are many other functions that have not been shown. I have also written some very easy-to-use components to achieve agile and rapid system development and greatly reduce the development time and cost. At present, I am docking with the mobile terminal for approval. Since there was no time to deploy the online test environment before, considering the recent deployment, you can find me alone for remote demonstration. If you need the source code, please contact me. q:2500564056。

Thanks:Jeecgboot open sourcehttp://jeecg.com/Coffee rabbit activiti actual combathttps://kafeitu.me/