|
@@ -114,7 +114,7 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
TFCustomFlowService tfCustomFlowService;
|
|
|
|
|
|
@Resource
|
|
|
- TFCustomFlowListService tfCustomFlowListService;
|
|
|
+ TFCustomFlowEntityService tfCustomFlowEntityService;
|
|
|
|
|
|
/**
|
|
|
* 注册流程
|
|
@@ -208,7 +208,7 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
* @param map
|
|
|
*/
|
|
|
protected void createFlowPicture(Map<String, Object> map) {
|
|
|
- String id = (String) map.get(SystemConstant.FLOW_LIST_ID);
|
|
|
+ String id = (String) map.get(SystemConstant.FLOW_ENTITY_ID);
|
|
|
String processDefinitionId = (String) map.get(SystemConstant.PROCESS_DEFINITION_ID);
|
|
|
String bpmnPngName = id + DefaultInstanceConvertToMultiInstance.FLOW_BPMN_PNG_NAME;
|
|
|
|
|
@@ -379,8 +379,8 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
Map<String, Object> objectMap = new HashMap<>();
|
|
|
TFFlowLog tfFlowLog = null;
|
|
|
|
|
|
- TFCustomFlowList tfCustomFlowList = tfCustomFlowListService.findByFlowId(flowId);
|
|
|
- Map<String, Object> flowProcessVarMap = this.getFlowProcessVarMap(tfCustomFlowList);
|
|
|
+ TFCustomFlowEntity tfCustomFlowEntity = tfCustomFlowEntityService.findByFlowId(flowId);
|
|
|
+ Map<String, Object> flowProcessVarMap = this.getFlowProcessVarMap(tfCustomFlowEntity);
|
|
|
|
|
|
String remark = null;
|
|
|
FlowTaskResult currFlowTaskResult = null, nextFlowTaskResult = null;
|
|
@@ -1103,8 +1103,8 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
multiInstance = true;
|
|
|
}
|
|
|
|
|
|
- TFCustomFlowList tfCustomFlowList = tfCustomFlowListService.findByFlowId(tfFlowApprove.getFlowId());
|
|
|
- Map<String, Object> flowProcessVarMap = this.getFlowProcessVarMap(tfCustomFlowList);
|
|
|
+ TFCustomFlowEntity tfCustomFlowEntity = tfCustomFlowEntityService.findByFlowId(tfFlowApprove.getFlowId());
|
|
|
+ Map<String, Object> flowProcessVarMap = this.getFlowProcessVarMap(tfCustomFlowEntity);
|
|
|
Map<String, CustomFlowVarDto> agginessMap = (Map<String, CustomFlowVarDto>) flowProcessVarMap.get(SystemConstant.AGGINESS_MAP);
|
|
|
if (Objects.nonNull(tfFlowApprove.getTransferAssignee())) {
|
|
|
agginessMap = JacksonUtil.readJson(tfFlowApprove.getTransferAssignee(), Map.class);
|
|
@@ -2203,7 +2203,7 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
TFCustomFlow tfCustomFlow = tfCustomFlowService.findMaxVersion(sysUser.getSchoolId(), sysUser.getOrgId(), TFCustomTypeEnum.ELECTRON_FLOW);
|
|
|
Optional.ofNullable(tfCustomFlow).orElseThrow(() -> ExceptionResultEnum.ERROR.exception("未找到自定义流程数据"));
|
|
|
|
|
|
- TFCustomFlowList tfCustomFlowList = new TFCustomFlowList(tfCustomFlow.getId(), sysUser.getId());
|
|
|
+ TFCustomFlowEntity tfCustomFlowEntity = new TFCustomFlowEntity(tfCustomFlow.getId(), sysUser.getId());
|
|
|
Map<String, Object> flowProcessVarMap = this.getFlowProcessVarMap(tfCustomFlow);
|
|
|
Map<String, CustomFlowVarDto> agginessMap = (Map<String, CustomFlowVarDto>) flowProcessVarMap.get(SystemConstant.AGGINESS_MAP);
|
|
|
agginessMap.put(CustomFlowTypeEnum.USER_TASK.getId() + DefaultInstanceConvertToMultiInstance.DEFAULT_USER_TASK, new CustomFlowVarDto(SystemConstant.APPROVE_ID, new ArrayList(Arrays.asList(String.valueOf(approveId)))));
|
|
@@ -2212,21 +2212,21 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.computeIfAbsent(SystemConstant.ID, v -> tfCustomFlow.getFlowKey());
|
|
|
map.computeIfAbsent(SystemConstant.FLOW_PROCESS_VAR_MAP, v -> flowProcessVarMap);
|
|
|
- map.computeIfAbsent(SystemConstant.FLOW_LIST_ID, v -> String.valueOf(tfCustomFlowList.getId()));
|
|
|
+ map.computeIfAbsent(SystemConstant.FLOW_ENTITY_ID, v -> String.valueOf(tfCustomFlowEntity.getId()));
|
|
|
map.computeIfAbsent(SystemConstant.APPROVE_ID, v -> String.valueOf(approveId));
|
|
|
map.computeIfAbsent(SystemConstant.EXAM_TASK_ID, v -> taskId);
|
|
|
this.flowStart(map);
|
|
|
|
|
|
tfCustomFlow.setActFlowId((String) map.get(SystemConstant.PROCESS_DEFINITION_ID));
|
|
|
- tfCustomFlowList.setFlowId(SystemConstant.convertIdToLong((String) map.get(SystemConstant.FLOW_ID)));
|
|
|
+ tfCustomFlowEntity.setFlowId(SystemConstant.convertIdToLong((String) map.get(SystemConstant.FLOW_ID)));
|
|
|
|
|
|
map.remove(SystemConstant.APPROVE_ID);
|
|
|
- map.remove(SystemConstant.FLOW_LIST_ID);
|
|
|
+ map.remove(SystemConstant.FLOW_ENTITY_ID);
|
|
|
map.remove(SystemConstant.PROCESS_DEFINITION_ID);
|
|
|
map.remove(SystemConstant.FLOW_STATUS);
|
|
|
- tfCustomFlowList.setFlowProcessVar(JacksonUtil.parseJson(map));
|
|
|
+ tfCustomFlowEntity.setFlowProcessVar(JacksonUtil.parseJson(map));
|
|
|
tfCustomFlow.setUpdateId(sysUser.getId());
|
|
|
- tfCustomFlowListService.save(tfCustomFlowList);
|
|
|
+ tfCustomFlowEntityService.save(tfCustomFlowEntity);
|
|
|
tfCustomFlowService.updateById(tfCustomFlow);
|
|
|
}
|
|
|
|
|
@@ -2242,9 +2242,9 @@ public class ActivitiServiceImpl implements ActivitiService {
|
|
|
if (o instanceof TFCustomFlow) {
|
|
|
o = (TFCustomFlow) o;
|
|
|
varMap = JacksonUtil.readJson(((TFCustomFlow) o).getFlowProcessVar(), Map.class);
|
|
|
- } else if (o instanceof TFCustomFlowList) {
|
|
|
- o = (TFCustomFlowList) o;
|
|
|
- varMap = JacksonUtil.readJson(((TFCustomFlowList) o).getFlowProcessVar(), Map.class);
|
|
|
+ } else if (o instanceof TFCustomFlowEntity) {
|
|
|
+ o = (TFCustomFlowEntity) o;
|
|
|
+ varMap = JacksonUtil.readJson(((TFCustomFlowEntity) o).getFlowProcessVar(), Map.class);
|
|
|
}
|
|
|
Optional.ofNullable(varMap).orElseThrow(() -> ExceptionResultEnum.ERROR.exception("自定义流程变量数据为空"));
|
|
|
Map<String, Object> flowProcessVarMap = (Map<String, Object>) varMap.get(SystemConstant.FLOW_PROCESS_VAR_MAP);
|