| | |
| | | package com.vci.web.dao.impl; |
| | | |
| | | import com.vci.base.common.utility.ObjectUtility; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.framework.data.UserEntityInfo; |
| | | import com.vci.client.bof.ClientLinkObject; |
| | | import com.vci.common.utility.ObjectUtility; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.data.UserEntityInfo; |
| | | import com.vci.corba.workflow.WorkflowService; |
| | | import com.vci.corba.workflow.WorkflowServicePrx; |
| | | import com.vci.corba.workflow.data.*; |
| | | import com.vci.corba.workflow.method.WorkflowService; |
| | | import com.vci.frameworkcore.compatibility.SmUserQueryServiceI; |
| | | import com.vci.frameworkcore.pagemodel.SmUserVO; |
| | | import com.vci.rmip.workflow.server.template.TasksAssigned; |
| | | import com.vci.starter.web.constant.QueryOptionConstant; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.DataGrid; |
| | |
| | | import com.vci.starter.web.util.BeanUtil; |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | | import com.vci.starter.web.util.VciDateUtil; |
| | | import com.vci.web.constant.WFVariablesKeyConstant; |
| | | import com.vci.web.dao.WebProcessDaoI; |
| | | import com.vci.web.model.ProcessInstance; |
| | | import com.vci.web.model.ProcessTask; |
| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Repository; |
| | | import org.springframework.util.CollectionUtils; |
| | | import plm.bs.bom.clientobject.ClientBusinessObject; |
| | | import plm.bs.bom.clientobject.ClientLinkObject; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.vci.frameworkcore.constant.FrameWorkBusLangCodeConstant.DATA_OID_NOT_EXIST; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 平台的流程服务 |
| | | */ |
| | | private WorkflowService workService = null; |
| | | private WorkflowServicePrx workService = null; |
| | | |
| | | /** |
| | | * 平台调用客户端 |
| | |
| | | WebUtil.alertNotNull(executionId,"流程执行主键",key,"参数Key"); |
| | | UserEntityInfo ueo = new UserEntityInfo(); |
| | | SessionInfo si = WebUtil.getCurrentUserSessionInfo(); |
| | | ueo.ip = si.getIp(); |
| | | // ueo..ip = si.getIp(); |
| | | ueo.modules = "流程"; |
| | | ueo.userName = si.getUserId(); |
| | | // while(StringUtils.countMatches(executionId,".")>1){ |
| | |
| | | * @throws VciBaseException |
| | | */ |
| | | @Override |
| | | public List<ClientLinkObject> getDataCloInTask(String taskOid,String executionid) throws VciBaseException { |
| | | public List<ClientLinkObject> getDataCloInTask(String taskOid, String executionid) throws VciBaseException { |
| | | Map<String,String> conditionMap = new HashMap<String, String>(); |
| | | if(StringUtils.isNotBlank(taskOid)) { |
| | | conditionMap.put("f_oid", taskOid.trim()); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public WorkflowService getWorkService() throws VciBaseException{ |
| | | public WorkflowServicePrx getWorkService() throws VciBaseException{ |
| | | if(workService == null){ |
| | | try { |
| | | this.workService = platformClientUtil.getLogonFactoryService().getWorkflowService(); |
| | | } catch (VCIError e) { |
| | | // logger.error(e.error_code,e); |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | this.workService = platformClientUtil.getLogonFactoryService(); |
| | | } |
| | | return workService; |
| | | } |