|
@@ -700,20 +700,20 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
TFCustomFlow tfCustomFlow = tfCustomFlowService.getById(tfCustomFlowEntity.gettFCustomFlowId());
|
|
TFCustomFlow tfCustomFlow = tfCustomFlowService.getById(tfCustomFlowEntity.gettFCustomFlowId());
|
|
Optional.ofNullable(tfCustomFlow).orElseThrow(() -> ExceptionResultEnum.FLOW_CUSTOM_NO_DATA.exception());
|
|
Optional.ofNullable(tfCustomFlow).orElseThrow(() -> ExceptionResultEnum.FLOW_CUSTOM_NO_DATA.exception());
|
|
|
|
|
|
-// FlowTaskResult flowTaskResultOne = tbSopInfoService.getFormProperties(tfCustomFlowEntity, 1);
|
|
|
|
-// ServiceScopeEnum scopeEnum = tbSopInfoService.findServiceScope(tfCustomFlow.getType(), flowTaskResultOne);
|
|
|
|
|
|
+ // FlowTaskResult flowTaskResultOne = tbSopInfoService.getFormProperties(tfCustomFlowEntity, 1);
|
|
|
|
+ // ServiceScopeEnum scopeEnum = tbSopInfoService.findServiceScope(tfCustomFlow.getType(), flowTaskResultOne);
|
|
|
|
|
|
FlowResult flowResult = JSONObject.parseObject(tfCustomFlowEntity.getFlowProcessVar(), FlowResult.class);
|
|
FlowResult flowResult = JSONObject.parseObject(tfCustomFlowEntity.getFlowProcessVar(), FlowResult.class);
|
|
LinkedHashMap<String, FlowTaskResult> setupMap = flowResult.getSetupMap();
|
|
LinkedHashMap<String, FlowTaskResult> setupMap = flowResult.getSetupMap();
|
|
FlowTaskResult currFlowTaskResult = GsonUtil.fromJson(
|
|
FlowTaskResult currFlowTaskResult = GsonUtil.fromJson(
|
|
GsonUtil.toJson(setupMap.get(task.getTaskDefinitionKey())), FlowTaskResult.class);
|
|
GsonUtil.toJson(setupMap.get(task.getTaskDefinitionKey())), FlowTaskResult.class);
|
|
|
|
|
|
-// if (tfCustomFlow.getType() == TFCustomTypeEnum.OFFICE_SOP_FLOW) {//教务处sop流程待审核人
|
|
|
|
-// if (Objects.nonNull(scopeEnum) && scopeEnum == ServiceScopeEnum.SCAN
|
|
|
|
-// && currFlowTaskResult.getSetup().intValue() > 3) {
|
|
|
|
-// return true;
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
|
|
+ // if (tfCustomFlow.getType() == TFCustomTypeEnum.OFFICE_SOP_FLOW) {//教务处sop流程待审核人
|
|
|
|
+ // if (Objects.nonNull(scopeEnum) && scopeEnum == ServiceScopeEnum.SCAN
|
|
|
|
+ // && currFlowTaskResult.getSetup().intValue() > 3) {
|
|
|
|
+ // return true;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
|
|
BpmnModel bpmnModel = repositoryService.getBpmnModel(task.getProcessDefinitionId());
|
|
BpmnModel bpmnModel = repositoryService.getBpmnModel(task.getProcessDefinitionId());
|
|
FlowNode currFlow = (FlowNode) bpmnModel.getMainProcess().getFlowElement(task.getTaskDefinitionKey());
|
|
FlowNode currFlow = (FlowNode) bpmnModel.getMainProcess().getFlowElement(task.getTaskDefinitionKey());
|
|
@@ -742,8 +742,9 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
// }
|
|
// }
|
|
|
|
|
|
boolean replace = false;
|
|
boolean replace = false;
|
|
|
|
+ String oldUserId = null;
|
|
if (!multiInstance) {
|
|
if (!multiInstance) {
|
|
- String oldUserId = task.getAssignee();
|
|
|
|
|
|
+ oldUserId = task.getAssignee();
|
|
if (Objects.nonNull(task.getAssignee())) {
|
|
if (Objects.nonNull(task.getAssignee())) {
|
|
oldUserId = task.getAssignee();
|
|
oldUserId = task.getAssignee();
|
|
} else {
|
|
} else {
|
|
@@ -772,7 +773,7 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
if (!replace) {
|
|
if (!replace) {
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
- TFFlowLog tfFlowLog = new TFFlowLog(sysUser.getOrgId(), sysUser.getId(), sysUser.getId(),
|
|
|
|
|
|
+ TFFlowLog tfFlowLog = new TFFlowLog(sysUser.getOrgId(), Long.parseLong(oldUserId), sysUser.getId(),
|
|
currFlowTaskResult.getSetup(), Long.parseLong(task.getProcessInstanceId()),
|
|
currFlowTaskResult.getSetup(), Long.parseLong(task.getProcessInstanceId()),
|
|
Long.parseLong(task.getId()), tfCustomFlowEntity.getId(), String.valueOf(userId));
|
|
Long.parseLong(task.getId()), tfCustomFlowEntity.getId(), String.valueOf(userId));
|
|
tfFlowLog.setApproveOperation(FlowApproveOperationEnum.EXCHANGE);
|
|
tfFlowLog.setApproveOperation(FlowApproveOperationEnum.EXCHANGE);
|