public PersistentLookupColumnProcessor(UserConnection userConnection) : base(userConnection)
 {
     _importDataProvider = ClassFactory.Get <ImportLookupChunksDataProvider>(
         new ConstructorArgument("userConnection", UserConnection)
         );
     _importParametersRepository = ClassFactory.Get <ImportParametersRepository>(new ConstructorArgument("userConnection", UserConnection));
 }
예제 #2
0
        /// <inheritdoc cref="IJobExecutor"/>
        public void Execute(UserConnection userConnection, IDictionary <string, object> parameters)
        {
            var repository = new ImportParametersRepository(userConnection);
            var processesImportParameters = repository.GetWithProcessIncomplete();

            foreach (var processImportParameter in processesImportParameters)
            {
                RestartUncompletedImport(userConnection.ProcessEngine,
                                         processImportParameter.Key,
                                         processImportParameter.Value
                                         );
            }
        }
예제 #3
0
        /// <inheritdoc cref="IJobExecutor"/>
        public void Execute(UserConnection userConnection, IDictionary <string, object> parameters)
        {
            var repository = new ImportParametersRepository(userConnection);
            var processesImportParameters = repository.GetWithProcessIncomplete();

            foreach (var processImportParameter in processesImportParameters)
            {
                try {
                    RestartUncompletedImport(userConnection, processImportParameter.Value);
                } catch (Exception e) {
                    WriteRestartingImportErrorLog(processImportParameter, e);
                }
            }
        }