예제 #1
0
        public RFProcessingTrackerHandle RetryError(string dispatchKey, RFUserLogEntry userLogEntry)
        {
            try
            {
                Log.Info(this, "RetryError {0}", dispatchKey);
                LogRequest();
                var activity = new RFRequestActivity(_context, _engineConfig);

                var qi = _context.DispatchStore.GetInstruction(dispatchKey);
                if (qi != null)
                {
                    return(RegisterTracker(activity.Submit(null, new List <RFInstruction> {
                        qi
                    }, userLogEntry)));
                }
                return(new RFProcessingTrackerHandle
                {
                    TrackerCode = "error"
                });
            }
            catch (Exception ex)
            {
                Log.Exception(this, "RetryError", ex);
                return(new RFProcessingTrackerHandle
                {
                    TrackerCode = "error"
                });
            }
        }
예제 #2
0
 public RFProcessingTrackerHandle SubmitAndProcess(IEnumerable <RFCatalogEntryDTO> inputs, RFUserLogEntry userLogEntry)
 {
     try
     {
         Log.Info(this, "SubmitAndProcess {0}", inputs.Count());
         LogRequest();
         var activity = new RFRequestActivity(_context, _engineConfig);
         return(RegisterTracker(activity.Submit(inputs.Select(e => e.Deserialize()), userLogEntry)));
     }
     catch (Exception ex)
     {
         Log.Exception(this, "SubmitAndProcess", ex);
         return(new RFProcessingTrackerHandle
         {
             TrackerCode = "error"
         });
     }
 }
예제 #3
0
 public RFProcessingTrackerHandle RunProcess(bool isGraph, string processName, RFGraphInstance instance, RFUserLogEntry userLogEntry)
 {
     try
     {
         Log.Info(this, "RunProcess {0} / ({1},{2})", processName, instance != null ? instance.Name : null, instance != null ? instance.ValueDate : null);
         LogRequest();
         var activity = new RFRequestActivity(_context, _engineConfig);
         // TODO: how should we treat non-graph?
         return(RegisterTracker(activity.Run(isGraph, processName, new RFEngineProcessorGraphInstanceParam(instance), userLogEntry)));
     }
     catch (Exception ex)
     {
         Log.Exception(this, "RunProcess", ex);
         return(new RFProcessingTrackerHandle
         {
             TrackerCode = "error"
         });
     }
 }