Table of Contents

Search

  1. Preface
  2. Introduction to the Informatica Connector Toolkit
  3. Installing and Upgrading the Informatica Connector Toolkit
  4. Building an Adapter
  5. Connection Attributes
  6. Type System
  7. Metadata Objects
  8. Partitioning Capability
  9. Run-time Behavior
  10. Adapter Example: Instagram
  11. Adapter Example: MySQL
  12. Adapter Example: YouTube
  13. Metadata Models
  14. ASO Model
  15. Adapter Project Migration
  16. Frequently Asked Questions

Informatica Connector Toolkit Developer Guide

Informatica Connector Toolkit Developer Guide

Defining the Adapter Metadata for Procedure Pattern by Using REST-based Specification

Defining the Adapter Metadata for Procedure Pattern by Using REST-based Specification

You can define the native metadata definition for the adapter by using an existing REST-based specification or generate and use a REST-based specification.
Procedure pattern is available only for Informatica Cloud and not supported for PowerCenter and Big Data Management in this release.
  1. In the Connector Navigator view, right-click the project and select
    Add Native Metadata Definition
    .
    The
    Add Native Metadata Definition
    dialog box appears.
  2. Enter the native metadata details.
    The following table describes the properties to enter:
    Property
    Description
    Name
    Name for the native metadata.
    Display Name
    Display name for the native metadata.
    Description
    Description of the native metadata.
  3. Specify the pattern type as procedure to create a native metadata object for procedures or functions in a data source.
  4. To create native metadata object based on a REST-based specification, select REST-based creation method.
  5. To use an existing swagger specification, click
    Browse
    and open the JSON file. After you open the JSON file, skip to step 7.
  6. To generate a swagger specification by sampling, select
    Generate swagger specification by sampling
    and then click
    Next
    .
    Perform the following steps to sample the REST end point:
    1. Enter the base URL.
    2. Click
      Add
      to get the procedure details.
    3. Specify the
      Path
      ,
      Display Name
      ,
      Method
      ,
      Content Type
      , and
      Accept Type
      properties.
    4. Add the parameter details.
    5. Click
      Test
      to validate and sample the REST end point.
    6. Click
      OK
      to add the procedure details.
  7. Click
    Generate Code
    .
    After you define the adapter metadata, the Informatica Connector Toolkit generates the
    <NMOName>MetadataAdapter.java
    file in the
    Metadata
    folder. To implement features specific to the data source, you can also modify code in the following methods in the
    <NMOName>MetadataAdapter.java
    file to import metadata.
    populateObjectCatalog()
    Populates metadata details in the import wizard for the adapter consumer.
    Data preview in the PowerCenter client or Informatica Cloud does not work if the values of the Record.setName and Record.setNativeName methods are different.
    populateObjectDetails()
    Gets metadata from the data source based on the import dialog options settings.
If you configured metadata write settings for the connector, implement the
writeObjects
method in the
<NMOName>MetadataAdapter.java
file.
If you regenerate code for the native metadata definition project, the Informatica Connector Toolkit does not regenerate code for the user-exposed source code visible in the Informatica perspective. You have to manually edit the source code and make changes if you add, remove, or change the native metadata attributes.


Updated May 15, 2019