public WfProcess(Prodef prodef, IWfProcessMgr processMgr) : base(new Proinst(), prodef) { this.manager = processMgr; this.proinst = base.wfInstance as Proinst; this.proinst.Responsible = prodef.ResponsibleId; this.proinst.DueTime = prodef.Duration; this.proinst.FormId = prodef.DaoDataFormId; this.proinst.TempletDataSetId = prodef.DaoDataSetId; this.proinst.Style = prodef.Style; this.proinst.ProjectId = this.GetNewProjectId(prodef.Package.Logo); }
public void ShowMe(Prodef prodef, Proinst proinst) { if (prodef != null) { if (this.mGraphDoc != null) { this.mGraphDoc.Reset(); } else { this.InitGraphDoc(); } if (this.mProinstDoc == null) { this.mProinstDoc = new ProinstDoc(); } this.mProinstDoc.Load(prodef, proinst, this.mGraphDoc, this.img32); } }
public void Load(SkyMap.Net.Workflow.XPDL.Prodef prodef, Proinst proinst, GraphDoc gDoc, ImageList imgList) { if (prodef == null) { throw new ArgumentNullException("Prodef cannot be null"); } if (proinst == null) { throw new ArgumentNullException("Proinst cannot be null"); } if ((this.mProdef == null) || (prodef.Id != this.mProdef.Id)) { this.Close(); this.mProdef = prodef; this.mProinst = proinst; foreach (Actdef actdef in prodef.Actdefs.Values) { IList<Transition> froms = actdef.Froms; if (froms.Count > 0) { foreach (Transition transition in froms) { if (!this.mWFTRANSITIONs.ContainsKey(transition.Id)) { this.mWFTRANSITIONs.Add(transition.Id, transition); } } } } } if (LoggingService.IsDebugEnabled) { LoggingService.Debug("开始画流程图..."); } this.BuildGraphDoc(gDoc, imgList); if (LoggingService.IsDebugEnabled) { LoggingService.Debug("结束画流程图..."); } }
public void CreateAbnormalAudit(Proinst proinst) { this.abnormalAuditInst.ProinstId = proinst.Id; this.abnormalAuditInst.ProinstName = proinst.Name; }
public WfProcess(Proinst proins) : base(proins) { this.proinst = proins; this.requester = WfFactory.GetWfRequester(proins.Requester); }
public void Close() { this.mWFTRANSITIONs.Clear(); this.mProdef = null; this.mProinst = null; }
public static IWfProcess GetWfProcess(Proinst proinst) { if (proinst == null) { throw new WfException("Proinst cannot be null"); } return new WfProcess(proinst); }