@Override public void beforeActivite(WfRunTimeContext context) throws WfBusinessException { // 第一步先传递过来当前用户 Map<String, Object> billVO = (Map<String, Object>) context.getBillVO(); // 设定本次执行任务的人 context.getDentityChecker().setAssigneedUserId((String) billVO.get("nextUserId")); }
@Override public void goForWard(WfRunTimeContext context) throws WfBusinessException { String id = context.getTaskInfoVO().getProcessInstanceId(); Demand demand = new Demand(); demand.setId(id); demand.setApproState("a"); demandService.update(demand); System.out.println("把需求列表里面的状态改为--------->省联系人待接收"); // 在节点信息号里添加相应信息 Map<String, Object> billVO = (Map<String, Object>) context.getBillVO(); requTrack = (RequTrack) billVO.get("requTrack"); nodeInfo = (NodeInfo) billVO.get("nodeInfo"); nodeAnnex = (NodeAnnex) billVO.get("nodeAnnex"); // requTrackService.save(requTrack); // nodeAnnexService.save(nodeAnnex); // nodeInfoService.save(nodeInfo); }