protected WfBranchProcessInfo(SerializationInfo info, StreamingContext context) { this._Process = (IWfProcess)info.GetValue("Process", typeof(IWfProcess)); this._OwnerOperation = (IWfOperation)info.GetValue("OwnerOperation", typeof(IWfOperation)); this._OperationID = info.GetString("OperationID"); this._Sequence = info.GetInt32("Sequence"); this._IsSpecificProcess = info.GetBoolean("IsSpecificProcess"); this._ProcessDescriptorKey = info.GetString("ProcessDescriptorKey"); this._BranchInfoState = (State)info.GetValue("BranchInfoState", typeof(State)); this._Context = (WfBranchProcessInfoContext)info.GetValue("Context", typeof(WfBranchProcessInfoContext)); this._LoadingType = (DataLoadingType)info.GetValue("LoadingType", typeof(DataLoadingType)); }
private WfBranchProcessInfoContext LoadContext() { WfBranchProcessInfoContext branchContext = null; IWorkflowReader persistProcess = WorkflowSettings.GetConfig().Reader; string strContext = persistProcess.GetBranchContext(this.OperationID, this.Process.ID); if (string.IsNullOrEmpty(strContext) == false) { branchContext = SerializationHelper.DeserializeStringToObject <WfBranchProcessInfoContext>(strContext, SerializationFormatterType.Binary); } else { branchContext = new WfBranchProcessInfoContext(); } return(branchContext); }