flowable根据业务id查询审批意见以及步骤

flowable根据业务id查询审批意见以及步骤

2023年7月24日发(作者:)

flowable根据业务id查询审批意见以及步骤@Override public Object getListCommentsByBusinessKey(String businessKey) { if (k(businessKey)) { return failure("businessKey不能为空,请检查"); } /**1:使⽤历史的流程实例查询,返回历史的流程实例对象,获取流程实例ID*/ HistoricProcessInstance hpi = HistoricProcessInstanceQuery()//对应历史的流程实例表 .processInstanceBusinessKey(businessKey)//使⽤BusinessKey字段查询 .singleResult(); //流程实例ID String processInstanceId = (); //List list = cessInstanceComments(processInstanceId); List haiList = historyService .createHistoricActivityInstanceQuery() .processInstanceId(processInstanceId) .activityType("userTask") .orderByHistoricActivityInstanceEndTime() .asc() .list(); List commentBeans = new ArrayList<>(); for (HistoricActivityInstance hai : haiList) { //根据任务id去历史意见表查询数据 List commList = kCommentsByTaskId(kId()); for (int i = 0; i < (); i++) { CommentBean commentBean = new CommentBean(); ivityName(ivityName()); (i).setMessage((i).getMessage()); ment((i)); (commentBean); } } HashMap var3 = new HashMap(); ("statusCode", S_STATUS_CODE); ("title", E_SUCCESS_MSG); ("message", "获取数据成功"); ("commentBeans", commentBeans); return var3; }

发布者:admin,转转请注明出处:http://www.yc00.com/xiaochengxu/1690213101a315750.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信