|
@@ -30,9 +30,11 @@ import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
import org.jeecg.common.utils.ActivitiTracingChart;
|
|
import org.jeecg.common.utils.ActivitiTracingChart;
|
|
import org.jeecg.common.utils.AjaxResult;
|
|
import org.jeecg.common.utils.AjaxResult;
|
|
|
|
+import org.jeecg.common.utils.BeanUtils;
|
|
import org.jeecg.modules.activiti.model.entity.EntityUtil;
|
|
import org.jeecg.modules.activiti.model.entity.EntityUtil;
|
|
import org.jeecg.modules.activiti.model.entity.FlowInfo;
|
|
import org.jeecg.modules.activiti.model.entity.FlowInfo;
|
|
import org.jeecg.modules.activiti.model.entity.TaskInfo;
|
|
import org.jeecg.modules.activiti.model.entity.TaskInfo;
|
|
|
|
+import org.jeecg.modules.activiti.model.entity.VariableInfo;
|
|
import org.jeecg.modules.customform.entity.CustomForm;
|
|
import org.jeecg.modules.customform.entity.CustomForm;
|
|
import org.jeecg.modules.customform.service.ICustomFormService;
|
|
import org.jeecg.modules.customform.service.ICustomFormService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -298,13 +300,19 @@ public class ServiceController {
|
|
List<HistoricVariableInstance> variableInstances = historyService.createHistoricVariableInstanceQuery()
|
|
List<HistoricVariableInstance> variableInstances = historyService.createHistoricVariableInstanceQuery()
|
|
.processInstanceId(executionId)
|
|
.processInstanceId(executionId)
|
|
.variableName("formData").list();
|
|
.variableName("formData").list();
|
|
-
|
|
|
|
|
|
+ List<VariableInfo> infos = new ArrayList<>();
|
|
|
|
+ variableInstances.forEach(v->{
|
|
|
|
+ VariableInfo info = new VariableInfo();
|
|
|
|
+ BeanUtils.copyBeanProp(info, v);
|
|
|
|
+ info.setValue(v.getValue().toString());
|
|
|
|
+ infos.add(info);
|
|
|
|
+ });
|
|
Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
|
|
Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
|
|
// 根据任务id获取任务id的formKey,也就是获取任务节点的自定义表单值
|
|
// 根据任务id获取任务id的formKey,也就是获取任务节点的自定义表单值
|
|
//formService.getTaskFormData(taskId).getFormKey();
|
|
//formService.getTaskFormData(taskId).getFormKey();
|
|
CustomForm customForm = customFormService.getById(task.getFormKey());
|
|
CustomForm customForm = customFormService.getById(task.getFormKey());
|
|
Map<String ,Object> map = new HashMap<>();
|
|
Map<String ,Object> map = new HashMap<>();
|
|
- map.put("fromData1",variableInstances);
|
|
|
|
|
|
+ map.put("fromData1",infos);
|
|
map.put("fromData2",customForm.getFormcontent());
|
|
map.put("fromData2",customForm.getFormcontent());
|
|
return Result.OK("查询成功",map);
|
|
return Result.OK("查询成功",map);
|
|
}
|
|
}
|