Activiti design and implementation (2)

1, Foreword The purpose of this chapter is to initially build the Activiti process engine, to initially familiarize you with how to build an Activiti project, how to build the project, and to complete the preliminary study of the Activiti workflow. If you want to advance, you can read the following tutorials. This article will […]

Activities in Android

To understand Activity, you must first understand the following concepts: Application components App components are the basic building blocks of Android apps. Each component is an entry point through which the system or users can enter your application. Some components depend on other components. There are four different application component types: Activity Serve broadcast receiver […]

Activiti process instances and task allocation

Article directory 1. Process examples 1.1. What is a process instance? 1.2. Associate the actual business with the activiti table (BusinessKey) 1.3. Suspend and activate process instance 1.3.1. All process instances hang 1.3.2. A single process instance hangs 2. Task allocation 2.1. Fixed allocation 2.2. UEL expression distribution 2.2.1. UEL-value method 2.2.2, UEL-method method 2.3. […]

[Workflow engine] Use of Activiti 02

The use of Activiti is mainly divided into three steps: 1, Define process Define a process according to the bpmn specification, template file <?xml version=”1.0″ encoding=”UTF-8″?> <definitions xmlns=”http://www.omg.org/spec/BPMN/20100524/MODEL” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns: xsd=”http://www.w3.org/2001/XMLSchema” xmlns:activiti=”http://activiti.org/bpmn” xmlns:bpmndi=”http://www.omg. org/spec/BPMN/20100524/DI” xmlns:omgdc=”http://www.omg.org/spec/DD/20100524/DC” xmlns:omgdi=”http://www.omg. org/spec/DD/20100524/DI” typeLanguage=”http://www.w3.org/2001/XMLSchema” expressionLanguage=”http://www.w3.org/1999/XPath” targetNamespace =”http://www.activiti.org/test”> <process id=”myProcess” name=”My process” isExecutable=”true”> <startEvent id=”startevent1″ name=”Start”></startEvent> <userTask id=”usertask1″ name=”Create leave request”></userTask> <sequenceFlow […]

KingbaseES database adaptation Activiti7 didn’t put process definition problem handling process

1. Introduction to Activiti Activiti is a lightweight java open source BPMN 2 workflow engine. It is currently upgraded to 7.x and supports integration with springboot2.x. 2. Project environment Spring Boot version 2.2.5 Activiti version 7.1.x Source database: MySQL 5.7 Target database: KinbgaseES V008R006C007B0024 JDBC driver: JDBC driver in Postgre form, postgresql-42.2.9.jar 3. Error messages […]

Data return between activities [Android, activity return, combined examples]

Task requirements In Android applications, sometimes it is necessary to pass data from one Activity to another Activity and pass the results back to the first Activity after processing by the second Activity. In this case, we can use the startActivityForResult() and onActivityResult() methods to implement data return. Implementation steps Create a new Android project: […]

The Art of Process Modeling: Designing Processes with Activiti

The art of process modeling: using Activiti to design processes Preface Process related define a process start a process Delete a process Method related Create process Verify whether the process model is legal Get the current person’s to-do list Query candidate tasks Delete historical process Get a list of unfinished historical process instances Get a […]

Activiti – Integrate SpringBoot

1. Introduce dependencies <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.0.RELEASE</version> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> </dependency> <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-spring-boot-starter</artifactId> <version>7.0.0.Beta2</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.29</version> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> 2. SpringBoot application.yml file configuration Note: […]

Solve the UnprocessableEntityException exception that occurs in the integration of spring security and activiti7

Resolve the exception problem of UnprocessableEntityException: Process definition with the given id: xxx’ belongs to a different application version During the integration process of spring security and activiti7 versions, a series of problems occurred, which are recorded here: The software environment configuration is as follows: jdk1.8, spring boot 2.6.10, activiti7.1.0-M6 version jdk8 is a basic […]