Example #1
0
 /// <summary>
 /// Creates a deep copy of the passed object.
 /// </summary>
 /// <param name="old">A <b>Database Definition</b> object to create the deep copy from.</param>
 private void CopyMembers(JobInstance old)
 {
     this.workflowTypeName   = old.workflowTypeName;
     this.dateStarted        = old.dateStarted;
     this.dateFinished       = old.dateFinished;
     this.jobExecutionStatus = old.jobExecutionStatus;
     this.suspendTimeout     = old.suspendTimeout;
     this.scheduleType       = old.scheduleType;
     this.scheduleTime       = old.scheduleTime;
     this.recurringPeriod    = old.recurringPeriod;
     this.recurringInterval  = old.recurringInterval;
     this.recurringMask      = old.recurringMask;
     this.workflowInstanceId = old.workflowInstanceId;
     this.adminRequestTime   = old.adminRequestTime;
     this.adminRequestData   = old.adminRequestData == null ? null : new JobAdminRequestData(old.adminRequestData);
     this.adminRequestResult = old.adminRequestResult;
     this.exceptionMessage   = old.exceptionMessage;
     this.parameters         = new ParameterCollection(old.parameters);
 }
Example #2
0
 private void InitializeMembers(StreamingContext context)
 {
     this.workflowTypeName   = string.Empty;
     this.dateStarted        = DateTime.MinValue;
     this.dateFinished       = DateTime.MinValue;
     this.jobExecutionStatus = JobExecutionState.Unknown;
     this.suspendTimeout     = DateTime.MinValue;
     this.scheduleType       = ScheduleType.Unknown;
     this.scheduleTime       = DateTime.MinValue;
     this.recurringPeriod    = RecurringPeriod.Unknown;
     this.recurringInterval  = 0;
     this.recurringMask      = 0;
     this.workflowInstanceId = Guid.Empty;
     this.adminRequestTime   = DateTime.MinValue;
     this.adminRequestData   = null;
     this.adminRequestResult = -1;
     this.exceptionMessage   = null;
     this.parameters         = new ParameterCollection();
 }
Example #3
0
        /// <summary>
        /// Initializes member variables to their initial values.
        /// </summary>
        /// <remarks>
        /// This function is called by the contructors.
        /// </remarks>
        private void InitializeMembers()
        {
            base.EntityType = EntityType.JobInstance;
            base.EntityGroup = EntityGroup.Jobs;

            this.workflowTypeName = string.Empty;
            this.dateStarted = DateTime.MinValue;
            this.dateFinished = DateTime.MinValue;
            this.jobExecutionStatus = JobExecutionState.Unknown;
            this.suspendTimeout = DateTime.MinValue;
            this.scheduleType = ScheduleType.Unknown;
            this.scheduleTime = DateTime.MinValue;
            this.recurringPeriod = RecurringPeriod.Unknown;
            this.recurringInterval = 0;
            this.recurringMask = 0;
            this.workflowInstanceId = Guid.Empty;
            this.adminRequestTime = DateTime.MinValue;
            this.adminRequestData = null;
            this.adminRequestResult = -1;
            this.exceptionMessage = null;

            this.parameters = new Dictionary<string, JobParameter>();
            this.checkpoints = new List<JobCheckpoint>();
        }
Example #4
0
        /// <summary>
        /// Creates a deep copy of the passed object.
        /// </summary>
        /// <param name="old">A <b>Database Definition</b> object to create the deep copy from.</param>
        private void CopyMembers(JobInstance old)
        {
            this.workflowTypeName = old.workflowTypeName;
            this.dateStarted = old.dateStarted;
            this.dateFinished = old.dateFinished;
            this.jobExecutionStatus = old.jobExecutionStatus;
            this.suspendTimeout = old.suspendTimeout;
            this.scheduleType = old.scheduleType;
            this.scheduleTime = old.scheduleTime;
            this.recurringPeriod = old.recurringPeriod;
            this.recurringInterval = old.recurringInterval;
            this.recurringMask = old.recurringMask;
            this.workflowInstanceId = old.workflowInstanceId;
            this.adminRequestTime = old.adminRequestTime;
            this.adminRequestData = old.adminRequestData == null ? null : new JobAdminRequestData(old.adminRequestData);
            this.adminRequestResult = old.adminRequestResult;
            this.exceptionMessage = old.exceptionMessage;

            // TODO: do deep copy here?
            this.parameters = new Dictionary<string, JobParameter>(old.parameters);
            this.checkpoints = new List<JobCheckpoint>(old.checkpoints);
        }
Example #5
0
 /// <summary>
 /// Copy private members from another object.
 /// </summary>
 /// <param name="old">The original object to copy data from.</param>
 private void CopyMembers(JobAdminRequestData old)
 {
     this.title   = old.title;
     this.message = old.message;
     this.options = old.options == null ? null : new List <string>(old.options);
 }
Example #6
0
 /// <summary>
 /// Copy contructor that creates a deep copy of the passed <b>JobAdminRequestData</b> class.
 /// </summary>
 /// <param name="old">The original object to copy data from.</param>
 public JobAdminRequestData(JobAdminRequestData old)
 {
     CopyMembers(old);
 }
Example #7
0
 /// <summary>
 /// Copy private members from another object.
 /// </summary>
 /// <param name="old">The original object to copy data from.</param>
 private void CopyMembers(JobAdminRequestData old)
 {
     this.title = old.title;
     this.message = old.message;
     this.options = old.options == null ? null : new List<string>(old.options);
 }
Example #8
0
 /// <summary>
 /// Copy contructor that creates a deep copy of the passed <b>JobAdminRequestData</b> class.
 /// </summary>
 /// <param name="old">The original object to copy data from.</param>
 public JobAdminRequestData(JobAdminRequestData old)
 {
     CopyMembers(old);
 }