Beispiel #1
0
        public ActionResult <Development.SDK.Module.Data.Container.Step> Execute(Development.SDK.Module.Service.Data.Requests.ExecutionInfo executionInfo)
        {
            Development.SDK.Module.Data.DataQuery.ResultTable resultTable = new();

            Guid transactionId = Guid.Empty;

            if (executionInfo != null &&
                executionInfo.Container != null &&
                executionInfo.Container.SystemFields != null &&
                executionInfo.Container.SystemFields.TransactionId != null)
            {
                transactionId = executionInfo.Container.SystemFields.TransactionId;
            }

            using (Serilog.Context.LogContext.PushProperty("TransactionId", transactionId.ToString()))
            {
                try
                {
                    var step = _execute.Execute(executionInfo.Container,
                                                executionInfo.Config,
                                                executionInfo.InputPort,
                                                false,
                                                _logger);

                    return(Ok(step));
                }
                catch (Exception ex)
                {
                    // EX: DEMO-0000
                    _logger?.Critcial("DEMO-0000", "The following error occurred while executing the processor Execute Script (C#). Error: {0}", ex.Message);
                    return(this.StatusCode(500, ex.Message));
                }
            }
        }
Beispiel #2
0
 public ActionResult <bool> Validate(Development.SDK.Module.Data.Common.ItemConfig config)
 {
     try
     {
         return(Ok(_config.Validate(config)));
     }
     catch (Exception ex)
     {
         // EX: DEMO-0000
         _logger?.Critcial("DEMO-0000", "The following error occurred while executing the processor. Error: {0}", ex.Message);
         return(this.StatusCode(500, ex.Message));
     }
 }
 public ActionResult <Development.SDK.Module.Data.Export.Dependency> CollectReferences(Development.SDK.Module.Service.Data.Requests.ConfigInformation config)
 {
     try
     {
         // This processor needs no clean up method
         //return Ok(_analytics.CollectReferences(config.Config));
         return(NoContent());
     }
     catch (Exception ex)
     {
         // EX: DEMO-0000
         _logger?.Critcial("DEMO-0000", "The following error occurred while executing the processor. Error: {0}", ex.Message);
         return(this.StatusCode(500, ex.Message));
     }
 }