Activiti source code tracking model operation

Activiti source code tracking model operation The tables ACT_RE_MODEL and ACT_GE_BYTEARRAY designed by the model model ACT_RE_MODEL table structure: CREATE TABLE `ACT_RE_MODEL` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` timestamp NULL DEFAULT […]

Integrated Activiti-Modeler process designer

Integrated Activiti-Modeler process designer Activiti Modeler is a front-end plug-in for online process design officially provided by Activiti. It can facilitate process designers and developers to draw flow charts, save process models, deploy to process definitions, etc. 1. Material preparation First we need to obtain activiti-explorer.zip, which is only available in activiti-5.22.0. Link: https://pan.baidu.com/s/1zZ8vcjR63_hgzcLl6soiDw Extraction […]

Activiti7 workflow engine: dynamic node jump

Jumping from one UserTask to another UserTask is not implemented in Activiti7. To achieve free jumping between nodes, it needs to be implemented through custom commands. Activiti7 implementation mainly uses the command mode (Command) and the chain of responsibility mode (Intercepter). Command mode: Mainly encapsulates each operation into a command. like: DeployCmd: Deployment operation. CompleteTaskCmd: […]

Activiti7 workflow engine: universal approval template

Regarding the approval method, different people at work have different ways of writing it. I recommend a way of writing that I think is more elegant. It can decouple business logic and approval logic, and the code looks cleaner. One: Request parameters @Getter @Setter @ToString @NoArgsConstructor @Builder public class ApprovalReq {<!– –> /** Business data […]

springboot integrates Activiti-multi-instance task serial and parallel configuration

Multiple instance tasks The difference between multi-instance serial and parallel 1. bpmn parallel configuration bpmn diagram Workflow instance xml Multi-instance configuration instructions 2. Process start 1. Deployment process 2. Start the process 3. Dynamic configuration 4. Summary This blog post refers to the following bloggers activiti multi-instance task [Get nèng – Activiti6] Getting Started with […]

Activiti – Creation of process engine

Directory Creation of Activiti process engine 1. BuildProcessEngine method of ProcessEngineConfiguration 2. ProcessEngines object 2.1. init method and getDefaultProcessEngine method 2.2. registerProcessEngine method and unregister method 2.3. retry method 2.4. destroy method 3. ProcessEngine object 3.1. Service components 3.2. Close the process engine 3.3. Process engine name Creation of Activiti process engine 1. BuildProcessEngine method […]

springboot+activiti5.0 integration (workflow engine)

Overview Springboot integrates activiti and uses modeler to create processes, edit, deploy and delete instances (runnable) Details 1. Now let’s talk about the process. First create the spring boot project and import the corresponding jar package. <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> <exclusions> <exclusion> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> […]

Activiti–Build environment (Maven+MySQL)

Directory Set up Activiti development environment 1. Introduce dependencies 2. Configuration file 2.1. Log configuration 2.2. activiti configuration 2.2.1. Directly configure processEngineConfiguration 2.2.2. After configuring the data source, reference it in processEngineConfiguration 3. Generate table structure 3.1. Databases supported by Activiti 3.2. Generate table in MySQL 4. Introduction to table structure 4.1. Naming rules and […]

Summary of data transfer methods between activities

The data transferred between Activities is generally relatively simple, but sometimes some more complex data is transferred in actual development. In this section, let’s learn more about how to transfer data between Activities. 1. Delivered through Intent When we jump to an Activity, we need an Intent. At this time, the Intent can carry data, […]