| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.flowable.engine.delegate.DelegateExecution; |
| | | import org.springblade.core.oss.OssTemplate; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.mdm.flow.excution.dispatch.FinishDataHandler; |
| | | import org.springblade.mdm.flow.service.FlowCommonService; |
| | | import org.springblade.mdm.flow.service.FlowProgramFileService; |
| | | import org.springblade.mdm.flow.service.FlowProgramProperties; |
| | | import org.springblade.mdm.program.entity.NcNode; |
| | | import org.springblade.mdm.program.service.NcNodeAutoCreateService; |
| | | import org.springblade.mdm.program.service.NcNodeHisService; |
| | | import org.springblade.mdm.program.service.NcNodeService; |
| | | import org.springblade.system.feign.ISysClient; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | |
| | | @Slf4j |
| | | @Component("cureFinishOperateTask") |
| | | @AllArgsConstructor |
| | | public class CureFinishOperateTask { |
| | | private final NcNodeService nodeService; |
| | | private final NcNodeAutoCreateService ncNodeAutoCreateService; |
| | | private final NcNodeHisService nodeHisService; |
| | | private final FlowCommonService flowCommonService; |
| | | private final FlowProgramFileService flowProgramFileService; |
| | | private final ISysClient sysClient; |
| | | private final OssTemplate ossTemplate; |
| | | |
| | | |
| | | private final NormalCureFinishDataHandler normalCureFinishDataHandler; |
| | | private final DeviationCureFinishDataHandler deviationCureFinishDataHandler; |
| | | |
| | | private final NcNodeService ncNodeService; |
| | | |
| | | /** |
| | | * 固化审批通过处理任务, |
| | |
| | | @Transactional |
| | | public void execute(DelegateExecution execution) throws IOException { |
| | | log.info("执行固化程序任务服务,流程实例id={}", execution.getProcessInstanceId()); |
| | | Date time = DateUtil.now(); |
| | | //固化程序检查有效期, |
| | | dealWithNode(execution.getProcessInstanceId()); |
| | | |
| | | nodeHisService.mergeNodeToHisGeTime(time); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |