Pārlūkot izejas kodu

升级 flowlong 1.0.1

hubin 10 mēneši atpakaļ
vecāks
revīzija
9dc258eb5b

+ 1 - 2
build.gradle

@@ -31,7 +31,7 @@ buildscript {
     ext {
         springBootVersion = "3.1.1"
         springdocVersion = "2.5.0"
-        flowlongVersion = "1.0.0"
+        flowlongVersion = "1.0.1"
         aizudaVersion = "1.0.2"
     }
 
@@ -90,7 +90,6 @@ dependencies {
 
     // 本地缓存
     implementation("com.github.ben-manes.caffeine:caffeine")
-    implementation("org.springframework.boot:spring-boot-starter-websocket")
 
     // 代码生成
     implementation("com.aizuda:aizuda-generator:${aizudaVersion}")

+ 1 - 5
pom.xml

@@ -19,7 +19,7 @@
 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
 		<aizuda.version>1.0.2</aizuda.version>
-		<flowlong.version>1.0.0</flowlong.version>
+		<flowlong.version>1.0.1</flowlong.version>
 		<springdoc.version>2.5.0</springdoc.version>
 		<skipTests>true</skipTests>
 	</properties>
@@ -116,10 +116,6 @@
 			<groupId>com.github.ben-manes.caffeine</groupId>
 			<artifactId>caffeine</artifactId>
 		</dependency>
-		<dependency>
-			<groupId>org.springframework.boot</groupId>
-			<artifactId>spring-boot-starter-websocket</artifactId>
-		</dependency>
 
 		<!-- 代码生成 -->
 		<dependency>

+ 1 - 1
src/main/java/com/aizuda/boot/modules/flw/flow/FlowTaskListener.java

@@ -142,7 +142,7 @@ public class FlowTaskListener implements TaskListener {
         } else if (eventType == EventType.reject) {
             // 驳回
             type = 4;
-        } else if (eventType == EventType.claim) {
+        } else if (eventType == EventType.claimRole || eventType == EventType.claimDepartment) {
             // 认领
             type = 5;
         } else if (eventType == EventType.jump) {

+ 1 - 1
src/main/java/com/aizuda/boot/modules/flw/service/impl/ProcessTaskServiceImpl.java

@@ -250,7 +250,7 @@ public class ProcessTaskServiceImpl implements IProcessTaskService {
     @Override
     public boolean claim(Long taskId, FlowCreator flowCreator) {
         TaskService taskService = flowLongEngine.taskService();
-        return null != taskService.claim(taskId, flowCreator);
+        return null != taskService.claimRole(taskId, flowCreator);
     }
 
     @Transactional(rollbackFor = Exception.class)