public HistoryViewModel Execute(GETHistoryRequest request)
        {
            var workflowObject = WorkflowObject.Create(request.Type, request.Id);

            var historyRequest = new HistoryRequest {WorkflowObject = workflowObject, ShowAllActivities = request.IsVerbose};

            if (request.DaysOfHistory > 0)
            {
                var since = _systemTime.Now.Subtract(TimeSpan.FromDays(request.DaysOfHistory));
                historyRequest.Since = since;
            }

            return _historyAssembler.GetHistory(historyRequest);
        }
示例#2
0
        public HistoryViewModel Execute(GETHistoryRequest request)
        {
            var workflowObject = WorkflowObject.Create(request.Type, request.Id);

            var historyRequest = new HistoryRequest {
                WorkflowObject = workflowObject, ShowAllActivities = request.IsVerbose
            };

            if (request.DaysOfHistory > 0)
            {
                var since = _systemTime.Now.Subtract(TimeSpan.FromDays(request.DaysOfHistory));
                historyRequest.Since = since;
            }

            return(_historyAssembler.GetHistory(historyRequest));
        }