public PersistentLookupColumnProcessor(UserConnection userConnection) : base(userConnection) { _importDataProvider = ClassFactory.Get <ImportLookupChunksDataProvider>( new ConstructorArgument("userConnection", UserConnection) ); _importParametersRepository = ClassFactory.Get <ImportParametersRepository>(new ConstructorArgument("userConnection", UserConnection)); }
/// <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 ); } }
/// <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); } } }