Beispiel #1
0
        private void InitialiseWithFirstExecutionStatus(Activity activity, User currentUser)
        {
            var executionStatus         = activity.ExecutionStatuses.OrderBy(es => es.Id).First();
            var newExecutionStatusEvent = new ActivityExecutionStatusEvent(executionStatus, currentUser, "", "", null);

            CurrentStatus = executionStatus;
            _executionEvents.Add(newExecutionStatusEvent);
        }
Beispiel #2
0
        public ActivityExecutionStatusEvent ExecuteEvent(ActivityExecutionStatus newExecutionStatus, User currentUser, string comments, DateTime?contextDate, string contextCode)
        {
            var newExecutionStatusEvent = new ActivityExecutionStatusEvent(newExecutionStatus, currentUser, comments, contextCode, contextDate);

            CurrentStatus = newExecutionStatus;
            _executionEvents.Add(newExecutionStatusEvent);

            return(newExecutionStatusEvent);
        }