| | |
| | | BpmProcessInstanceRespVO respVO = BeanUtils.toBean(processInstance, BpmProcessInstanceRespVO.class); |
| | | respVO.setStatus(FlowableUtils.getProcessInstanceStatus(processInstance)) |
| | | .setFormVariables(FlowableUtils.getProcessInstanceFormVariable(processInstance)); |
| | | // definition |
| | | // definition(流程定义可能已被删除,需要容错,否则前端拿到 500) |
| | | if (processDefinition != null) { |
| | | respVO.setProcessDefinition(BeanUtils.toBean(processDefinition, BpmProcessDefinitionRespVO.class)); |
| | | if (respVO.getProcessDefinition() != null && processDefinitionInfo != null) { |
| | | copyTo(processDefinitionInfo, respVO.getProcessDefinition()); |
| | | } |
| | | } |
| | | // user |
| | | if (startUser != null) { |
| | | respVO.setStartUser(BeanUtils.toBean(startUser, UserSimpleBaseVO.class)); |