public WfActivity(Actinst actins)
     : base(actins)
 {
     this.actinst = actins;
     this.process = WfFactory.GetWfProcess(this.actinst.Proinst);
     this.executor = WfActivityAbstractImplFact.GetConcretImpl(this);
 }
 public WfActivity(Actdef actdef, IWfProcess process)
     : base(new Actinst(), actdef)
 {
     this.actinst = base.wfInstance as Actinst;
     this.process = process;
     this.actinst.Proinst = (Proinst) process.GetInstanceObject();
     this.actinst.ActdefId = actdef.Id;
     this.actinst.ActdefName = actdef.Name;
     this.actinst.DueTime = actdef.Limit;
     this.actinst.Name = actdef.Name;
     this.actinst.Type = actdef.Type;
     this.actinst.FromCount = 0;
     this.actinst.ToCount = 0;
     this.executor = WfActivityAbstractImplFact.GetConcretImpl(this);
 }