监控特殊处理
This commit is contained in:
+19
-6
@@ -97,7 +97,9 @@ public class ProcessStep4After implements TaskListener {
|
|||||||
List<Task> list = taskService.createTaskQuery().processInstanceId(esTechRelation.getPrcId()).active().list();
|
List<Task> list = taskService.createTaskQuery().processInstanceId(esTechRelation.getPrcId()).active().list();
|
||||||
if (list != null && !list.isEmpty()) {
|
if (list != null && !list.isEmpty()) {
|
||||||
// 删除正在运行中的流程根据流程实例ID
|
// 删除正在运行中的流程根据流程实例ID
|
||||||
runtimeService.deleteProcessInstance(esTechRelation.getPrcId(), "");
|
if(StringUtils.isNotBlank(esTechRelation.getPrcId())) {
|
||||||
|
runtimeService.deleteProcessInstance(esTechRelation.getPrcId(), "");
|
||||||
|
}
|
||||||
//删除关联表
|
//删除关联表
|
||||||
delList.add(esTechRelation.getId());
|
delList.add(esTechRelation.getId());
|
||||||
}
|
}
|
||||||
@@ -114,7 +116,9 @@ public class ProcessStep4After implements TaskListener {
|
|||||||
List<Task> list = taskService.createTaskQuery().processInstanceId(esTechRelation.getPrcTechId()).active().list();
|
List<Task> list = taskService.createTaskQuery().processInstanceId(esTechRelation.getPrcTechId()).active().list();
|
||||||
if (list != null && !list.isEmpty()) {
|
if (list != null && !list.isEmpty()) {
|
||||||
// 删除正在运行中的流程根据流程实例ID
|
// 删除正在运行中的流程根据流程实例ID
|
||||||
runtimeService.deleteProcessInstance(esTechRelation.getPrcTechId(), "");
|
if(StringUtils.isNotBlank(esTechRelation.getPrcTechId())) {
|
||||||
|
runtimeService.deleteProcessInstance(esTechRelation.getPrcTechId(), "");
|
||||||
|
}
|
||||||
//删除关联表
|
//删除关联表
|
||||||
delList.add(esTechRelation.getId());
|
delList.add(esTechRelation.getId());
|
||||||
}
|
}
|
||||||
@@ -339,7 +343,9 @@ public class ProcessStep4After implements TaskListener {
|
|||||||
String nowTaskInfo1 = list1.get(0).getName();
|
String nowTaskInfo1 = list1.get(0).getName();
|
||||||
if ("技术标准起草".equals(nowTaskInfo1)) {
|
if ("技术标准起草".equals(nowTaskInfo1)) {
|
||||||
// 删除正在运行中的流程根据流程实例ID
|
// 删除正在运行中的流程根据流程实例ID
|
||||||
runtimeService.deleteProcessInstance(prcIdGk1, "");
|
if(StringUtils.isNotBlank(prcIdGk1)) {
|
||||||
|
runtimeService.deleteProcessInstance(prcIdGk1, "");
|
||||||
|
}
|
||||||
|
|
||||||
String OVERTIME = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
|
String OVERTIME = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
|
||||||
QueryWrapper queryWrapperGk1 = new QueryWrapper();
|
QueryWrapper queryWrapperGk1 = new QueryWrapper();
|
||||||
@@ -355,7 +361,9 @@ public class ProcessStep4After implements TaskListener {
|
|||||||
List<Task> list = taskService.createTaskQuery().processInstanceId(prcId1).active().list();
|
List<Task> list = taskService.createTaskQuery().processInstanceId(prcId1).active().list();
|
||||||
if (list != null && !list.isEmpty()) {
|
if (list != null && !list.isEmpty()) {
|
||||||
// 删除正在运行中的流程根据流程实例ID
|
// 删除正在运行中的流程根据流程实例ID
|
||||||
runtimeService.deleteProcessInstance(prcId1, "");
|
if(StringUtils.isNotBlank(prcId1)) {
|
||||||
|
runtimeService.deleteProcessInstance(prcId1, "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -368,7 +376,10 @@ public class ProcessStep4After implements TaskListener {
|
|||||||
String nowTaskInfo2 = list2.get(0).getName();
|
String nowTaskInfo2 = list2.get(0).getName();
|
||||||
if ("技术标准起草".equals(nowTaskInfo2)) {
|
if ("技术标准起草".equals(nowTaskInfo2)) {
|
||||||
// 删除正在运行中的流程根据流程实例ID
|
// 删除正在运行中的流程根据流程实例ID
|
||||||
runtimeService.deleteProcessInstance(prcIdGk2, "");
|
if(StringUtils.isNotBlank(prcIdGk2)){
|
||||||
|
runtimeService.deleteProcessInstance(prcIdGk2, "");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
String OVERTIME = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
|
String OVERTIME = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
|
||||||
QueryWrapper queryWrapperGk2 = new QueryWrapper();
|
QueryWrapper queryWrapperGk2 = new QueryWrapper();
|
||||||
@@ -384,7 +395,9 @@ public class ProcessStep4After implements TaskListener {
|
|||||||
List<Task> list = taskService.createTaskQuery().processInstanceId(prcId2).active().list();
|
List<Task> list = taskService.createTaskQuery().processInstanceId(prcId2).active().list();
|
||||||
if (list != null && !list.isEmpty()) {
|
if (list != null && !list.isEmpty()) {
|
||||||
// 删除正在运行中的流程根据流程实例ID
|
// 删除正在运行中的流程根据流程实例ID
|
||||||
runtimeService.deleteProcessInstance(prcId2, "");
|
if(StringUtils.isNotBlank(prcId2)){
|
||||||
|
runtimeService.deleteProcessInstance(prcId2, "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,8 +14,11 @@ logging:
|
|||||||
org.hibernate: info
|
org.hibernate: info
|
||||||
eureka:
|
eureka:
|
||||||
client:
|
client:
|
||||||
|
allow-redirects: true
|
||||||
|
register-with-eureka: true
|
||||||
|
fetch-registry: true
|
||||||
serviceUrl:
|
serviceUrl:
|
||||||
defaultZone: http://10.100.5.117:4201/eureka/
|
defaultZone: http://127.0.0.1:8123/eureka/
|
||||||
instance:
|
instance:
|
||||||
prefer-ip-address: true
|
prefer-ip-address: true
|
||||||
spring:
|
spring:
|
||||||
@@ -33,9 +36,9 @@ spring:
|
|||||||
datasource:
|
datasource:
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://10.100.5.111:3306/foton_bat_wkflow?nullCatalogMeansCurrent=true&serverTimezone=Asia/Shanghai&useSSL=false&characterEncoding=utf-8
|
url: jdbc:mysql://121.36.69.172:3307/foton-bat-wkflow-test?nullCatalogMeansCurrent=true&serverTimezone=Asia/Shanghai&useSSL=false&characterEncoding=utf-8
|
||||||
username: tempuser
|
username: root
|
||||||
password: Fting&8g35g#geg2
|
password: hzwlsoft.com
|
||||||
activiti:
|
activiti:
|
||||||
database-schema-update: true
|
database-schema-update: true
|
||||||
# 自动部署验证设置:true-开启(默认)、false-关闭
|
# 自动部署验证设置:true-开启(默认)、false-关闭
|
||||||
@@ -44,10 +47,10 @@ spring:
|
|||||||
active: dev
|
active: dev
|
||||||
# 相关服务配置同业务系统
|
# 相关服务配置同业务系统
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
host: 10.100.5.119
|
host: 121.36.69.172
|
||||||
port: 5672
|
port: 5672
|
||||||
username: admin
|
username: admin
|
||||||
password: foton@admin
|
password: hzwlsoft.com
|
||||||
listener:
|
listener:
|
||||||
direct:
|
direct:
|
||||||
# 默认加载 发版 需改为 true
|
# 默认加载 发版 需改为 true
|
||||||
@@ -102,7 +105,7 @@ ribbon:
|
|||||||
|
|
||||||
# 配置 是否 启用 OA
|
# 配置 是否 启用 OA
|
||||||
oa:
|
oa:
|
||||||
flag: true
|
flag: false
|
||||||
|
|
||||||
# 配置前端服务全路径地址 如下 /#/
|
# 配置前端服务全路径地址 如下 /#/
|
||||||
webUrl: https://srms.foton.com.cn/#/
|
webUrl: https://srms.foton.com.cn/#/
|
||||||
@@ -116,5 +119,4 @@ buss:
|
|||||||
down:
|
down:
|
||||||
file:
|
file:
|
||||||
path: https://srms.foton.com.cn/file/
|
path: https://srms.foton.com.cn/file/
|
||||||
# path: http://foton.natapp1.cc/file/
|
# path: http://foton.natapp1.cc/file/
|
||||||
|
|
||||||
Reference in New Issue
Block a user