| Using the Essential Integration Server |
|
|
|
|
This tutorial introduces the Essential Integration Server and describes how imports from external data sources are performed with Essential Architecture Manager. The Essential Integration Server is released at a pre-alpha version, currently. This article describes how this version is to be used and documents the main components of the integration solution. Details of how the Essential Integration Server should be installed are available in the install guide.
IntroductionInformation about your architecture can be imported into Essential Architecture Manager from any source repository, e.g. a configuration management repository, an Excel Spreadsheet or relational database, enabling you to quickly populate your architecture model using information that is already captured in your organisation. Additionally, this approach can be used for ‘mass data entry’ of elements to the model via, e.g. a spreadsheet, for repetitive task or where the information is being captured by someone who has no direct access to model.
ApproachThe Essential Integration Server is a web-based application that drives the import process. It provides a Java Servlet-based engine for importing data from external sources with a simple index page that presents a menu of import options and invokes the integration server.
The server runs XSLT on the source data files to produce a script (contained in one or more text files) that uses the Protégé API to import information into the Essential repository. Importing directly to the underlying Protégé datastore is not recommended.
Performing an Integration or ImportThe simple web application provides on-line instructions for how to run the integration processes. Completing the process requires manual steps in the current release and these are as follows:
Details of how to complete these steps are described in the sections below. 2. Select the repository to import from via the links availableClick on the link for the repository that you wish to import data from. You can import full extracts or partial updates as required, provided the overall structure of the source data file remains the same. When the server has processed the source data file, the success page will be returned to you. Any errors that may have occurred during the import processing will be displayed via an alternative page. Out-of-the box, two links are provided.
The index.html provides hyperlinks that invoke the Repository Import Service REST-ful Web Service. You can easily create additional imports by creating new links on this page to invoke the required XSL on your XML sources. For more information on the Repository Integration Service and the parameters for it, see below. A set of links to the import scripts produced by the Repository Integration Service is shown and these scripts are available to download. The scripts interact with the Essential repository through the Protégé API, rather than directly to the underlying datastore to ensure that the integrity of the repository is maintained. All integrations and imports should operate in this manner and directly reading or writing to the underlying Protégé datastore is not recommended. The scripts can be downloaded to your local workstation via your browser (e.g. right-click->Save Target As…). Once downloaded, you can execute them from your Protégé client, as described below. It is recommended that you download these to the default location, which is currently: C:/EssentialAM/RepositoryIntegration(Note Unix-style directory separators)
This default location is controlled by a Servlet parameter on the RepositoryIntegrationService Servlet and is used to specify the path to the import scripts and the Standard_Functions file. Simply update the 'clientDefaultLocation' parameter in the WebContent/WEB-INF/web.xml file to change the default location. You can run these from an alternative location without changing the default but the path must be updated in the For large imports, where the Repository Import Service will create many script files, you can copy the generated scripts to the default location. The script files are written to the WebContent/IntegrationScripts folder. 3. Backup the target Essential Repository (recommended)If an automatic backup of the repository database has not been performed recently, it is advisable to make an unscheduled backup. This is particularly important if the source data has not been imported before or its structure could have changed. Depending on the complexity of the integration that has been defined, un-doing an import that has not completed as expected can be impractical and restoring the database to the state before the import was run is the safest roll-back approach.
4. Execute the integration scripts from ProtégéHaving downloaded or copied the integration / import scripts to the correct location and performed a backup of the repository, you are ready to import the external information into the Essential repository, as follows:
Running the script again will demonstrate the update functionality of the integration solution. This shows that attempting to import an instance that is already in the repository will cause it to be updated not duplicated.
Adding new importsTo add a new import to the Essential Integration Server, update the index.html file in the root directory of the Essential Integration Server web application to add additional menu items with links configured to call the integration servlet – RepositoryImportService - with the correct parameters as follows:
Additional Support
|