Automating the import of artifacts using the SDK
It is possible to automate the import and export of most ODI objects through the ODI SDK. This feature can be used to promote objects from development to quality assurance or to design packaging and deployment processes around your ODI projects. In this recipe, we will import Knowledge Modules into a project.
Getting ready
You can follow the instructions using the Groovy editor in ODI Studio 11.1.1.6 and higher. In this recipe, we will reuse the project created in the previous recipe, Creating a project using the SDK. Follow the necessary steps of this recipe to create it or recreate it using ODI Studio. No other prerequisites are required.
How to do it...
Follow steps 1 and 2 from the recipe Creating a project using the SDK.
In this recipe, we use the import of Knowledge Modules into a project as an example, so we start by importing classes related to projects:
OdiProject
andIOdiProjectFinder
. We then import theImportServiceImpl
class that...