public static ProcessorData CreateInstance(Type type, string doctoprocess, Guid parenttrackingid, string exportdirectory) { ProcessorData processor = null; try { processor = (ProcessorData)Activator.CreateInstance(type, new object[0]); processor.DocumentToProcess = doctoprocess; processor.ParentTrackingId = parenttrackingid; processor.ExportDirectory = exportdirectory; } catch (Exception ex) { processor = null; WFLogger.NLogger.ErrorException("ERROR: ProcessorData.CreateInstance failed!", ex); } return(processor); }
public object Clone() { ProcessorData procdata = new ProcessorData(); procdata.DequeueTime = this.DequeueTime; procdata.DocumentToProcess = this.DocumentToProcess; procdata.EnqueueTime = this.EnqueueTime; procdata.ExportDirectory = this.ExportDirectory; procdata.ParentTrackingId = this.ParentTrackingId; procdata.ProcessEndTime = this.ProcessEndTime; procdata.ProcessStartTime = this.ProcessStartTime; procdata.State = this.State; procdata.TrackingId = this.TrackingId; // procdata.TypeFullName = this.TypeFullName; // procdata.TypeName = this.TypeName; procdata.WFState = this.WFState; procdata.OutputDocuments.AddRange(this.OutputDocuments); return(procdata); }