-
Notifications
You must be signed in to change notification settings - Fork 2
Import Workflow
Michael Parsons (CWD) edited this page Apr 26, 2019
·
2 revisions
The import is a console application that can be initiated from the CTI.Import project. The startup class is program.cs.
Before starting an import, verify that the app.config values are set up for your objectives.
- Get import parameters (adhoc dates, or scheduled values like hourly, ‘nnn’ minutes).
- Can optionally include checks for deleted documents, or skip checks for deletes
- Can specify to only import certain entity types, like organizations, and credentials for example.
- Calls RegistryImport method with target date range:
- Search for any documents of the target type with a last updated date between the provided start and end dates
- NOTE: dates in the registry are UTC. The dates provided in the app.config or calculated based on hour or minute parameters, will be converted to UTC before calling this step.
- For each envelope returned by the registry search, the appropriate method in the Import.Services project will be called
Import.Services
- NOTE: We are using the V3 import methods and the related MappingHelperV3 class. The original import methods have not been removed yet
- Each import class has a few options for importing as we have functions on the finder website for importing/reimporting by CTID URL or envelope URL.
- Ensure that both databases have been restored to your environment.
- Update the connection strings in the app.config with source server name, and the proper username and password (probably established when the databases were restored).
- Create the c:@logs folder if you want to see traces or any error logs (very unlikely, of course).
- The import is configured by default to do an adhoc run, since Feb 1, 2019, and to download from production. You may want to change to a more recent date to have less data to process for initial testing.
- <add key="scheduleType" value="adhoc" />
- <add key="startingDate" value="2019-02-01T01:00:12" />
- <!-- Production -->
- <add key="credentialRegistryUrl" value="https://credentialengineregistry.org" />