예제 #1
0
        public WFInfo GetWorkflowByIdentifier(Guid wfIdentifier)
        {
            DateTime startTime = DateTime.Now;

            try
            {
                var wf = _workflowService.GetWorkflowByIdentifier(wfIdentifier);

                _requestTracer.TraceServiceRequestAsync(
                    this, Convert.ToInt64((DateTime.Now - startTime).TotalMilliseconds), new Object[] { wfIdentifier }, wf, 1, "");

                return(wf);
            }
            catch (Exception exc)
            {
                string errMsg = string.Format("Error get workflow with <{0}> identifier. Err: {1}", wfIdentifier, exc.ToString());
                Logger.Instance.Error(errMsg, LoggerConsts.WorkflowCreateWorkflow, exc);

                _requestTracer.TraceServiceRequestAsync(
                    this, Convert.ToInt64((DateTime.Now - startTime).TotalMilliseconds), new Object[] { wfIdentifier }, null, 0, exc.ToString());

                throw;
            }
        }