...
This commit is contained in:
parent
6423f22b42
commit
46851b85f9
|
@ -127,33 +127,39 @@ public class ActTaskService extends BaseServiceImpl {
|
||||||
TaskDTO dto = new TaskDTO();
|
TaskDTO dto = new TaskDTO();
|
||||||
this.convertTaskInfo(task, dto);
|
this.convertTaskInfo(task, dto);
|
||||||
ObjectMapper oMapper = new ObjectMapper();
|
ObjectMapper oMapper = new ObjectMapper();
|
||||||
|
Map<String, Object> processVariable = task.getProcessVariables();
|
||||||
|
processVariable.putAll(task.getProcessVariables());
|
||||||
|
|
||||||
TAbilityApplicationDTO abilityApplicationDTO =
|
TAbilityApplicationDTO abilityApplicationDTO =
|
||||||
tAbilityApplicationService.get(Long.valueOf(dto.getBusinessKey()));
|
tAbilityApplicationService.get(Long.valueOf(dto.getBusinessKey()));
|
||||||
if (abilityApplicationDTO != null) {
|
if (abilityApplicationDTO != null) {
|
||||||
Map<String, Object> variables = oMapper.convertValue(abilityApplicationDTO, Map.class);
|
Map<String, Object> variables = oMapper.convertValue(abilityApplicationDTO, Map.class);
|
||||||
dto.setParams(variables);
|
processVariable.putAll(variables);
|
||||||
|
dto.setParams(processVariable);
|
||||||
listDto.add(dto);
|
listDto.add(dto);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
TResourceMountApplyDTO resourceMountApplyDTO = tResourceMountApplyService.get(Long.valueOf(dto.getBusinessKey()));
|
TResourceMountApplyDTO resourceMountApplyDTO = tResourceMountApplyService.get(Long.valueOf(dto.getBusinessKey()));
|
||||||
if (resourceMountApplyDTO != null) {
|
if (resourceMountApplyDTO != null) {
|
||||||
Map<String, Object> variables = oMapper.convertValue(resourceMountApplyDTO, Map.class);
|
Map<String, Object> variables = oMapper.convertValue(resourceMountApplyDTO, Map.class);
|
||||||
dto.setParams(variables);
|
processVariable.putAll(variables);
|
||||||
|
dto.setParams(processVariable);
|
||||||
listDto.add(dto);
|
listDto.add(dto);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
TDemandDataDTO tDemandDataDTO = tDemandDataService.get(Long.valueOf(dto.getBusinessKey()));
|
TDemandDataDTO tDemandDataDTO = tDemandDataService.get(Long.valueOf(dto.getBusinessKey()));
|
||||||
if (tDemandDataDTO != null) {
|
if (tDemandDataDTO != null) {
|
||||||
Map<String, Object> variables = oMapper.convertValue(tDemandDataDTO, Map.class);
|
Map<String, Object> variables = oMapper.convertValue(tDemandDataDTO, Map.class);
|
||||||
dto.setParams(variables);
|
processVariable.putAll(variables);
|
||||||
|
dto.setParams(processVariable);
|
||||||
listDto.add(dto);
|
listDto.add(dto);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ResourceDTO resourceDTO = resourceService.get(Long.valueOf(dto.getBusinessKey()));
|
ResourceDTO resourceDTO = resourceService.get(Long.valueOf(dto.getBusinessKey()));
|
||||||
if (resourceDTO != null) {
|
if (resourceDTO != null) {
|
||||||
Map<String, Object> variables = oMapper.convertValue(resourceDTO, Map.class);
|
Map<String, Object> variables = oMapper.convertValue(resourceDTO, Map.class);
|
||||||
dto.setParams(variables);
|
processVariable.putAll(variables);
|
||||||
|
dto.setParams(processVariable);
|
||||||
listDto.add(dto);
|
listDto.add(dto);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue