public WfResource(WfResinst wfresinst) { this.wfResinst = wfresinst; this.wfActivity = WfFactory.GetWfActivity(this.wfResinst.Actinst); }
private void Init(IWfActivity wfActivity, CParticipant part) { Actinst instanceObject = wfActivity.GetInstanceObject() as Actinst; this.wfActivity = wfActivity; this.wfResinst = instanceObject.WfResinst; if (this.wfResinst == null) { this.wfResinst = new WfResinst(); this.SetWfResInst(part, instanceObject); } WfLogicalPassContextData passContextData = WfUtil.GetPassContextData(); if (passContextData != null) { this.SetWfResInst(passContextData); } }
public void CallBack() { if (this.IsAssigned || (this.wfActivity.WhileOpen == WhileOpenType.Running)) { throw new CannotCallBackException("it was accepted:" + this.Key); } IDA0 daoInstance = DaoUtil.GetDaoInstance("SkyMap.Net.Workflow"); daoInstance.Put(this.wfResinst, DAOType.DELETE); this.OnDelete(daoInstance); this.wfResinst = null; this.wfActivity = null; }
public static IWfResource GetWfResource(WfResinst wfresinst) { if (wfresinst == null) { throw new WfException("WfResinst cannot be null"); } return new WfResource(wfresinst); }
private bool ExistAssigninst(WfResinst wfresinst, string staffid, string staffname) { return false; }
private void CallBack(WfResinst resInst) { WfFactory.GetWfResource(resInst).CallBack(); }