SAS 9.1.3 ETL Studio: Users Guide

 < Day Day Up > 


This section shows you how to develop a source designer plug-in for SAS ETL Studio. The SourceDesignerPlugin sample provides a method for building a new source designer, along with links to Web site resources for more detailed information.

Before you can design a new source designer plug-in, determine the format of the source and the metadata that you want to capture about the source. You need this information in order to design property windows that will gather information about your source.

Mapping the Metadata and Building the Plug-in

Decide what type of metadata you want to register as a result of running your plug-in. For more details about defining metadata, see the SAS Metadata Model in the SAS Open Metadata Architecture: Reference, which is available in SAS Help and Documentation.

Source designer plug-ins are integrated into SAS ETL Studio using the SourceDesignerInterface, which is a Java interface. For technical details about the SAS ETL Studio Plug-In Framework and the SourceDesignerInterface (com.sas.wadmin.plugins.SourceDesignerInterface), see the SAS BI Package Libraries at http://support.sas.com/rnd/gendoc/bi/api/

You can also refer to the following sample Java programs:

In the sample source designer programs, the SourceDesignerPlugin.java class provides the needed plug-in navigation, where tabs display each panel of the plug-in. For example, public class Tab1 and public class Tab2 extend WsDescriptionWizardTab. Each tab then references a panel that displays that panel. For example, public class Panel1 and public class Panel2 extend WAPanel.

Installing and Running the Plug-in

In SAS ETL Studio, you must provide a JAR file that contains all class files, property bundles, and a manifest. Place this JAR file in the plug-ins subdirectory where SAS ETL Studio is located—for example, ETLStudioDirectoryLocation\9.1\plugins.

In the JAR file for each plug-in must be a manifest that includes the following information:

Manifest-Version: 1.0 Main-Class: plugindir /* Directory where your plug-in class that */ /* extends SourceDesignerInterface resides */ Created-By: 1.3.0 (Sun Microsystems Inc.) Plugin-Init: plugindir.SourceDesignerPlugin.class

You might also need to set the Class-Path for the plug-in to run properly.

Plug-in Output

The write_metadata method in Tab2 shows an example of writing the physical table, TableName, with 10 columns, named Column0 through Column9. This table shows up in the Custom tree of SAS ETL Studio.


 < Day Day Up > 

Категории