ÎļþÃû´Ó Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/WebProcessCommandServiceImpl.java ÐÞ¸Ä |
| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.bo.FlowNoticeInfo; |
| | | import com.vci.constant.WFVariablesKeyConstant; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.data.UserEntityInfo; |
| | | import com.vci.corba.omd.data.BusinessObject; |
| | |
| | | import com.vci.corba.workflow.data.FlowInstanceInfo; |
| | | import com.vci.corba.workflow.data.MapTransfersInfo; |
| | | import com.vci.corba.workflow.data.TasksAssignedInfo; |
| | | import com.vci.dto.ProcessStartConfigDTO; |
| | | import com.vci.dto.ProcessTemplateVO; |
| | | import com.vci.dto.VciFileObjectDTO; |
| | | import com.vci.omd.utils.ObjectTool; |
| | |
| | | import com.vci.pagemodel.ProcessOutcomeVO; |
| | | import com.vci.pagemodel.ProcessTaskVO; |
| | | import com.vci.pagemodel.ProcessUserVO; |
| | | import com.vci.starter.web.annotation.FlowNotifyAfter; |
| | | import com.vci.starter.web.annotation.FlowNotifyBefore; |
| | | import com.vci.starter.web.annotation.FlowNotifyWeb; |
| | | import com.vci.starter.web.constant.QueryOptionConstant; |
| | | import com.vci.starter.web.enumpck.DataSecretEnum; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.DataGrid; |
| | | import com.vci.starter.web.pagemodel.SessionInfo; |
| | | import com.vci.starter.web.util.BusAnnotationUtil; |
| | | import com.vci.starter.web.util.LangBaseUtil; |
| | | import com.vci.starter.web.util.VciDateUtil; |
| | | import com.vci.web.annotation.FlowNotifyAfter; |
| | | import com.vci.web.annotation.FlowNotifyBefore; |
| | | import com.vci.web.annotation.FlowNotifyWeb; |
| | | import com.vci.bo.FlowNoticeInfo; |
| | | import com.vci.constant.WFVariablesKeyConstant; |
| | | import com.vci.web.dao.WebProcessDaoI; |
| | | import com.vci.dto.ProcessStartConfigDTO; |
| | | import com.vci.web.properties.WebProperties; |
| | | import com.vci.web.service.*; |
| | | import com.vci.web.util.BusAnnotationUtil; |
| | | import com.vci.web.util.PlatformClientUtil; |
| | | import com.vci.web.util.WebUtil; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | private WebProcessDaoI processDao; |
| | | |
| | | @Autowired |
| | | private OsLifeCycleServiceI lifeCycleService; |
| | | |
| | | |
| | | @Autowired |
| | | private WebProperties webProperties; |
| | | private WebLifeCycleServiceI lifeCycleService; |
| | | |
| | | /** |
| | | * æä»¶ä¸ä¼ æå¡ |
| | |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | if (StringUtils.isNotBlank(config.getStartStatus())) { |
| | | lifeCycleService.transCboStatus(allCbo, config.getStartStatus()); |
| | | try { |
| | | lifeCycleService.transCboStatus(allCbo, config.getStartStatus()); |
| | | } catch (Exception e) { |
| | | throw new VciBaseException("å¯å¨æµç¨æ¶ï¼æ¹éè·è¿çå½å¨æç¶æå¤±è´¥ï¼", new Object[]{}, e); |
| | | } |
| | | } |
| | | callAfter(processInstanceId,null,null,currentTime); |
| | | } |
| | |
| | | } |
| | | List<Map> mapList = boService.cbos2Map(workItemCbos); |
| | | callBefore(mapList,"suspend",note,currentTime); |
| | | lifeCycleService.transCboStatus(needUpdateCbos, "Suspended"); |
| | | try { |
| | | lifeCycleService.transCboStatus(needUpdateCbos, "Suspended"); |
| | | } catch (Exception e) { |
| | | throw new VciBaseException("æèµ·æµç¨æ¶ï¼æ¹éè·è¿çå½å¨æç¶æå¤±è´¥ï¼", new Object[]{}, e); |
| | | } |
| | | callAfter(null,null,mapList,currentTime); |
| | | } |
| | | |
| | | /** |
| | | * æ¢å¤æµç¨ |
| | | * @param executionId æµç¨ä¸»é® |
| | | * @throws VciBaseException |
| | | */ |
| | | @Override |
| | | public void resumeProcess(String executionId) throws VciBaseException { |
| | | WebUtil.alertNotNull(executionId, "æµç¨æ§è¡å®ä¾ç主é®"); |
| | |
| | | } |
| | | |
| | | callBefore(null,"resume","",currentTime); |
| | | lifeCycleService.transCboStatus(needUpdateCbos, "Executing"); |
| | | try { |
| | | lifeCycleService.transCboStatus(needUpdateCbos, "Executing"); |
| | | } catch (Exception e) { |
| | | throw new VciBaseException("æ¢å¤æµç¨æ¶ï¼æ¹éè·è¿çå½å¨æç¶æå¤±è´¥ï¼", new Object[]{}, e); |
| | | } |
| | | callAfter(null,boService.cbos2Map(workItemCbos),null,currentTime); |
| | | } |
| | | |