| | |
| | | import org.flowable.engine.IdentityService; |
| | | import org.flowable.engine.RuntimeService; |
| | | import org.flowable.engine.runtime.ProcessInstance; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.mdm.basesetting.machine.MachineService; |
| | | import org.springblade.mdm.basesetting.machine.entity.Machine; |
| | |
| | | private final NcNodeService nodeService; |
| | | private final RuntimeService runtimeService; |
| | | private final IdentityService identityService; |
| | | private final MachineService machineService; |
| | | private final ProduceDivisionService produceDivisionService; |
| | | private final NodeDeptQueryService nodeDeptQueryService; |
| | | private final FlowCommonService flowCommonService; |
| | | private final FlowProgramFileService flowProgramFileService; |
| | | /** |
| | |
| | | @Transactional |
| | | public void startUnlock(Long nodeId){ |
| | | NcNode programPackage = nodeService.getById(nodeId); |
| | | if(flowCommonService.isProcessInstanceActive(programPackage.getProcessInstanceId())){ |
| | | throw new ServiceException("流程正在进行"); |
| | | } |
| | | Map<String, Object> vars = new HashMap<>(); |
| | | flowCommonService.putFlowVariablesByNode(vars,programPackage); |
| | | |