//获取审批
public String getTaskContent(String exeid,String taskId) {
List<HistoryTask> list = historyService.createHistoryTaskQuery().list();
String insId = null;
String historyTaskId = null;
String comments = null;
for(HistoryTask ht: list) {
insId = ht.getExecutionId();
//只取此流程实例的审批信息
if(insId.equals(exeid)) {
historyTaskId = ht.getId();
if(historyTaskId.equals(taskId)){
List<HistoryComment> hList = taskService.getTaskComments(historyTaskId);
if(null != hList && hList.size() > 0) {
comments = hList.get(0).getMessage();
System.out.println(comments);
}
}
}
}
return comments;
}
JBPM审批意见
最新推荐文章于 2020-05-01 06:50:18 发布