public void GetByProcessCodeTest() { ProcessInfoRepostories target = new ProcessInfoRepostories(); IList <string> processCodeLIst = new List <string>() { "TGContract" }; var actual = target.GetByProcessCode(processCodeLIst); Assert.IsTrue(actual.Count > 0); }
public List <K2Status> GetProcessStatusByFolio(string folio) { List <K2Status> list = new List <K2Status>(); var actList = ProcessInfoRepostories.GetProcessStatusByFolio(folio); list = MapStatus(actList); if (list.Count == 0) { var procInst = ProcessInfoRepostories.GetProcInstByFolio(folio); list.Add(new K2Status() { ProcInstId = procInst.ID, Activity = MapProcInstStatus(procInst == null ? -1 : procInst.Status), Folio = procInst == null ? null : procInst.Folio, StartDate = procInst == null ? DateTime.MinValue : procInst.FinishDate }); } return(list); }
/// <summary> /// 获取流程实例基本信息 /// </summary> /// <param name="procInstId"></param> /// <returns></returns> public ProcInstBasicInfo GetProcInstBasicInfo(int procInstId) { return(ProcessInfoRepostories.GetProcInstBasicInfo(procInstId)); }
public IList <ProcessInfo> GetByProcessCode(IList <string> processCode) { return(ProcessInfoRepostories.GetByProcessCode(processCode)); }