| | |
| | | import org.springblade.flow.core.pojo.entity.BladeFlow; |
| | | import org.springblade.flow.core.utils.TaskUtil; |
| | | import org.springblade.mdm.flow.vo.TaskAssignVO; |
| | | import org.springblade.mdm.program.entity.NcProgram; |
| | | import org.springblade.mdm.program.service.NcProgramService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.flowable.engine.RuntimeService; |
| | |
| | | private AutoAssignUsersService autoAssignUsersService; |
| | | @Autowired |
| | | private IdentityService identityService; |
| | | |
| | | @Autowired |
| | | private NcProgramService ncProgramService; |
| | | private static final String PROCESS_KEY = "dispatch"; |
| | | |
| | | public void start(TaskAssignVO startVO){ |
| | |
| | | vars.put("drawingNoEdition",startVO.getDrawingNoEdition()); |
| | | vars.put("planLockDays",startVO.getPlanLockDays()); |
| | | |
| | | //vars.put("producePlanId",startVO.getCraftEdition()); |
| | | //零组件代码 |
| | | String partNo = generatePartNo(startVO); |
| | | vars.put("partNo",partNo); |
| | | |
| | | NcProgram curedNcProgram = ncProgramService.getCuredNcProgram(partNo,startVO.getMachineMode()); |
| | | vars.put("curedNcProgram",curedNcProgram); |
| | | |
| | | //设置是否有固化程序标记 |
| | | vars.put("hasCuredProgram",curedNcProgram != null ? "Y":"N"); |
| | | |
| | | String businessKey = "0";//业务表key |
| | | |
| | | identityService.setAuthenticatedUserId(String.valueOf(AuthUtil.getUserId()));//设置流程发起人 |
| | |
| | | startVO.getProcessName(), |
| | | startVO.getCraftEdition(), |
| | | startVO.getProcessEdition()); |
| | | |
| | | } |
| | | } |