Example #1
0
 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);
 }
Example #2
0
 public static IWfProcess GetWfProcess(Prodef prodef, IWfProcessMgr processMgr)
 {
     if (prodef == null)
     {
         throw new WfException("Process definition object cannot be null");
     }
     if (processMgr == null)
     {
         throw new WfException("ProcessMgr cannot be null");
     }
     return new WfProcess(prodef, processMgr);
 }