| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.flowable.engine.RuntimeService; |
| | | import org.flowable.engine.delegate.DelegateExecution; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.mdm.flow.entity.FlowProgramFile; |
| | | 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.entity.NcProgramApproved; |
| | | import org.springblade.mdm.program.service.NcNodeHisService; |
| | | import org.springblade.mdm.program.service.NcNodeService; |
| | | import org.springblade.mdm.program.service.NcProgramApprovedService; |
| | | import org.springblade.mdm.utils.EntityUtil; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | private FlowCommonService flowCommonService; |
| | | @Autowired |
| | | private NcNodeService ncNodeService; |
| | | |
| | | @Autowired |
| | | private NcNodeHisService nodeHisService; |
| | | /** |
| | | * 在流程结束时自动调用,(配置在审批结束事件的executelistener中了) |
| | | * @param execution 执行对象 |
| | | */ |
| | | public void handle(DelegateExecution execution) { |
| | | Date time = DateUtil.now(); |
| | | |
| | | // 执行业务逻辑 |
| | | String instId = execution.getProcessInstanceId(); |
| | | log.info("事件名称{},instid={}" , execution.getEventName(),instId); |
| | |
| | | } |
| | | |
| | | addApproveTable(tempPkgNode,props); |
| | | |
| | | nodeHisService.mergeNodeToHisGeTime(time); |
| | | log.info("程序补充流程已完成in AppendFinishListener"); |
| | | } |
| | | |