Defining and Populating Value Maps

This chapter provides an overview of value maps and discusses how to:

Click to jump to parent topicUnderstanding Value Maps

The Define Value Maps component enables users to define and classify value maps and elements. Each value map must be defined as either dynamic (cross-reference) or static (DVM).

Value maps support the following types of maps:

One-to-One Cross-Reference

Cross-reference maps support a one-to-one relationship between two systems. For example, the PeopleSoft system uses one ID for customer A, the enterprise business object (EBO) or common value uses a GUID, and the external system uses another ID for the same customer.

The cross-reference map would be defined like this:

PeopleSoft

UniqueGUID

External System

PS

UniqueGUID

EXT

PS100

<guid1>

EXT-100

PS102

<guid2>

EXT-102

In this scenario, when a PeopleSoft application creates a new customer and sends the create customer message to the external system, the routing includes a transformation program that uses the cross-reference map to translate the data.

One-to-Many Cross-Reference

Cross-reference maps support a one-to-many relationship between two systems. Two or more values in a system may correspond to a single value in another system. For example, three different job codes might exist in the PeopleSoft system that correspond to one job code in the external system.

The cross-reference map would be defined like this:

PeopleSoft

UniqueGUID

External System

PS

UniqueGUID

EXT

AS01

AS02

AS03

<guid1>

<guid2>

<guid3>

ASST

MG01

<guid4>

MNGR

In this scenario, when the PeopleSoft application assigns or changes a job code and sends the message to the external system, the routing includes a transformation program that uses the cross-reference map to translate the data. If the integration requires translation from the external system value to a PeopleSoft value, the developer is responsible for determining how to handle the multiple PeopleSoft values returned from the lookup. Options include replicating the source data for each value, implementing a method of choosing a default value, and generating an error for the transaction.

Cross-Reference with Multiple Domains

Many times a system implements functionality using compound keys. This is supported in the cross-reference framework by means of multiple elements to identify the value set. For example, item integrations from a PeopleSoft application to an external system would use a cross-reference map to translate SetID/ItemID on the PeopleSoft system to Product on the external system.

The cross-reference map would be defined like this:

 

PeopleSoft

PeopleSoft

UniqueGUID

External System

SETID

ITEMID

UniqueGUID

Product

SHARE

1001

<guid1>

RP001

SHARE

1002

<guid2>

RP002

SHARE

1003

<guid3>

RP003

SHR03

1000

<guid4>

RP006

In this scenario, when the PeopleSoft application creates an item and sends the message to the external system, the routing includes a transformation program that maps the setID and itemID to a common element (UniqueGUID) and the external system receives the translated data.

One-to-One DVM

In a domain value map, the one-to-one relationship contains the actual data values. For example, the PeopleSoft application uses the short name for the state code, the EBO defines state code using the full name as the common value, and the external application uses an abbreviated name for state code.

The DVM would be defined like this:

PeopleSoft

Common

External System

Short

Full

Abbrev

MA

Massachusetts

Mass

CA

California

Calif

In this scenario, when a PeopleSoft application creates an outbound message to the external system that includes the state code, the routing includes a transformation program mapping the short name to the full name and the external system requires a transformation from the full name to the abbreviated name. The transformation for the external system can be done by means of the AIA middleware or a proprietary transformation on the external system.

One-to-Many DVM

In the domain value map, a one-to-many relationship is created by entering multiple values for one domain mapping to a single value in another domain. For example, in the PeopleSoft application, multiple person types can map to a single person type in the external application.

The DVM would be defined like this:

PeopleSoft

UniqueGUID

External System 2

PS

UniqueGUID

EXT2

PS001

PS002

<guid1>

SB001

PS003

<guid2>

SBL002

In this scenario, when a PeopleSoft application creates an outbound message to an external system that includes the person type, the routing includes a transformation program to translate the data values.

DVM with Multiple Elements Per Domain

In the DVM, you can map multiple elements to define a value set. For example, in the PeopleSoft application, the Business Unit/Chartfield combination could map to a Ledger/Segment combination in an external application.

In this scenario, when a PeopleSoft application creates an outbound message to the external system that includes the person type, the routing includes a transformation program providing the data translation.

The DVM would be defined like this:

PeopleSoft

PeopleSoft

UniqueGUID

External System 1

 

Business Unit

Chartfield

UniqueGUID

Segment

Ledger

US001

ACCOUNT

<guid1>

SEGMENT1

Ledger1

US001

DEPARTMENT

<guid2>

SEGMENT2

Ledger1

US001

PRODUCT

<guid3>

SEGMENT3

Ledger1

US002

ACCOUNT

<guid4>

SEGMENT1

Ledger2

In this scenario, when a PeopleSoft application creates an outbound message to an external system that includes the Business Unit/Chartfield, the routing includes a transformation program to translate the data values for the multiple elements to a single UniqueGUID. The external system would then need to transform the UniqueGUID to the equivalent Segment/Ledger.

DVM with Qualifiers

Qualifiers provide additional context to uniquely identify mapping values. A mapping may not be valid unless qualified with additional contextual information. For example, a domain value map containing city code to city name mapping may have multiple mappings for a city based on the country. For example, Kensington is a city in Canada as well as the United States.

The DVM would be defined like this:

EXT (Qualifier 1)

PSFT (Qualifier 1)

EXT (Qualifier 2)

PSFT (Qualifier 2)

Common

EXT

PSFT

Country

State

Common

CityCode

CityName

USA

Minnasota

BELG_MN

BELG

Belgrade

USA

North Carolina

BELG_NC

BELG

Belgrade

USA

Kansas

KN_KS

KN

Kensington

Canada

Prince Edward Island

KN_PEI

KN

Kensington

In this scenario, when the PeopleSoft application creates an outbound message to an external system that includes the Business Unit/Chartfield, the routing includes a transformation program mapping city name, country, and state to a common value.

Click to jump to parent topicDefining Map Options

This section discusses how to define value map options.

Click to jump to top of pageClick to jump to parent topicPage Used to Define Value Map Options

Page Name

Definition Name

Navigation

Usage

Value Map Options

EOTF_MAP_OPTIONS

Enterprise Components, Integration Definitions, Transformation Framework, Define Map Options

Use this page to select default values for the options available on value map definitions.

Click to jump to top of pageClick to jump to parent topicDefining Map Options

Access the Value Map Options page (Enterprise Components, Integration Definitions, Transformation Framework, Define Map Options).

Cache Minutes

The cache for map definitions and DVM data uses this value to determine the stale datetime. Once this time is exceeded, the cache is refreshed before use.

Concatenation Separator

Indicates the separator for concatenation when importing or exporting data. For V1 (Fusion Middleware FMW) schemas, if values are concatenated from multiple element domains into a single column during export or unconcatenated during an import of data then this separator value is used.

Import Options

These options are defaulted into the import component and any maps that are created. The import process uses the map specific options.

Import Mode

Allows a user to import a definition, alter the definition via the define value maps component, and subsequently import data only. This gives users the ability to rename elements, or perhaps specify multiple elements for a domain prior to importing data.

Valid values are:

  • Definition Only

    Allows users to move definitions from one environment to another without the data.

  • Definition and Data

    Imports both the definition and associated data.

  • Values Only

    Allows users to import data using the map definition in the database and not the definition in the file.

Error When Map Exists

Select this check box to prevent maps from being wiped out accidentally if a user tries to import a map with an existing name. The default value is selected.

Delete Map/Data Before Import

Select this check box to delete existing definition and data prior to import (default). If this check box is cleared, append/merge is used. Append/merge allows a user to add elements, domains or data to an existing map without deleting existing data

Note. This option is for advanced users only as they must understand the implications.

Export Options

These options are defaulted into maps that are created. The export process uses map specific options.

Export Mode

Valid options are:

  • Definition Only

    Allows users to move definitions from one environment to another without the data.

    This is the default for XREF.

  • Definition and Data

    Exports both the definition and associated data.

    This is the default for DVM.

Export UniqueGUID to DVM.V1

Select to remove PeopleSoft required UniqueGUID domain from the DVM when moving maps to Fusion Middleware (FMW).

Click to jump to parent topicDefining Value Maps

This section discusses how to:

Click to jump to top of pageClick to jump to parent topicPages Used to Define Value Maps

Page Name

Definition Name

Navigation

Usage

Define Value Maps - Elements

EOTF_DEFINE_MAPS

Enterprise Components, Integration Definitions, Transformation Framework, Define Value Maps, Elements

Assign elements to the map.

Define options for a value map

EOTF_MAP_OPT_SEC

Click the Options link on the Define Value Maps - Elements page.

Set the map level options. For new maps, the option values will default to the defined system level option values.

Define Value Maps - Domains

EOTF_DEFINE_MAPS2

Enterprise Components, Integration Definitions, Transformation Framework, Define Value Maps, Domains

Assign elements to domains.

Click to jump to top of pageClick to jump to parent topicAdding a Value Map

Access the Define Value Maps search page (Enterprise Components, Integration Definitions, Transformation Framework, Define Value Maps).

To add a value map:

  1. Select the Add a New Value tab.

  2. In the Map Name field, enter a name for the map.

  3. In the Map Type field, select the map type.

  4. Click the Add button.

The Elements page appears, where you can define the elements for the map.

Note. After you save the map, you can not change the map type.

Map Types

Maps are either static or dynamic.

Domain Value Map (static)

Static map to which values are provided by means of the Populate Domain value component.

 

Cross Reference (dynamic)

Dynamic map to which values are provided based on key information.

Click to jump to top of pageClick to jump to parent topicAdding Elements to the Map

Access the Define Value Map - Elements page (Enterprise Components, Integration Definitions, Transformation Framework, Define Value Maps).

Description

Enter a description for the value map.

Options

Use this link to modify the options for this map. The link will take you to the Define options for a value map page, where you can set up the options, as well as delete the existing cache for the map. When you click OK, the options will be applied to the map.

For new maps, the option values will default to the defined system level option values.

See Defining Map Options.

Comments

Enter comments for the value map.

Order

The common element is always assigned order 1. All other elements must be assigned an order of 2 or higher.

Element Name

Enter the element name. Select one and only one element as the common element. The common element must always contain a unique value for each row of data entered into both dynamic and static value maps.

For dynamic maps, the common element must be a unique guid.

For static maps, the common element can be assigned as required.

Data Type

Values are:

  • String

  • Numeric

The data type is used for validation when you are entering data values.

Length

Enter the length of the element.

The length is used for validation when you are entering data values.

Required

Select to indicate that this is a required element.

Export

This button allows the user to publish the map definition and data in an XML format using the options defined for the value map.

See Exporting Value Maps.

Delete

Use this button to delete the value map.

Click to jump to top of pageClick to jump to parent topicMapping Level Options

Access the Define options for a value map page (click the Options link on the Define Value Maps - Elements page).

This page is similar to Define options for a value map used to define the default options, the difference is:

When you click the OK button, the options will be applied to the map and you will be returned to the Define Value Maps page.

See Defining Map Options.

Click to jump to top of pageClick to jump to parent topicAssigning Domains to the Value Map

Access the Define Value Maps - Domains page (Enterprise Components, Integration Definitions, Transformation Framework, Define Value Maps, Domains).

Each element in a value map must be assigned to at least one domain.

Domain Name

Enter the domain name for the participating system.

Is Unique

Select to indicate that elements within the domain make up a unique instance.

Element Name

Select the element to assign.

Note. Domain name “UniqueGUID” will be automatically generated as it is required to maintain a unique value for each row of data in a map. Elements may be shared across multiple domains, as long as users understand the data value in the element is unique to the map, not the domain. In general, it is expected most DVM domains will contain a single element, and most PeopleSoft XREF domains will contain multiple elements, though this is not a rule.

Click to jump to parent topicPopulating a Domain Value Map

This section discusses how to populate a domain value map.

Click to jump to top of pageClick to jump to parent topicPage Used to Populate a Domain Value Map

Page Name

Definition Name

Navigation

Usage

Domain Value Map

EOTF_POPULATE_DVMS

Enterprise Components, Integration Definitions, Transformation Framework, Populate Domain Value Maps

Populate a domain value map.

Click to jump to top of pageClick to jump to parent topicPopulating a Domain Value Map

Access the Domain Value Map page (Enterprise Components, Integration Definitions, Transformation Framework, Populate Domain Value Maps).

You use domain value maps to enter and maintain data in static value maps. The elements that you define for the value map make up the columns displayed on the page. Elements are ordered and validated as specified in the map definition.

A unique value must be entered for each row of data in every DVM. When you save the page, the component looks for a cached rowset and destroys it. The cache is reloaded the next time it is called.

Click to jump to parent topicImporting Value Maps

This section provides an overview of the import file types used with value maps and describes how to import value maps.

Click to jump to top of pageClick to jump to parent topicUnderstanding Import File Types Used with Value Maps

There are 2 import file types supported in the Transformation Framework:

Importing XML Files

There are 2 types of schemas supported in the Transformation Framework:

When the specified file contains XML, the XML must conform to one of the schemas supported by the import web service. When the file contains XML, users may choose to import a map definition, map data, or both. When importing using the FMW (V1) schema, users may desire to have the import process break composite values into element values. To do so, users need to import the definition, then alter the definition to specify multiple elements for one or more of the domains using the Value Map Definition component, then go back and import data values only. In this scenario, the process will unconcatenate the values using the specified separator. An error will be thrown if a required element is not valued.

Importing CSV Files

When the file contains CSV data, the following rules apply:

This is an example of the cross-reference value map csv file in MicroSoft Excel:

This is an example of the DVM value map csv file in MicroSoft Excel:

Click to jump to top of pageClick to jump to parent topicPage Used to Import Value Map

Page Name

Definition Name

Navigation

Usage

Import Value Maps

EOTF_MAP_IMPORT

Enterprise Components, Integration Definitions, Transformation Framework, Import Value Maps

Import a DVM or XREF from a specified file.

Click to jump to top of pageClick to jump to parent topicImporting Value Maps

Access the Import Value Maps page (Select Enterprise Components, Integration Definitions, Transformation Framework, Import Value Maps).

The import value maps component provides users the ability to import a DVM or XREF from a specified file. The import file must be formatted as XML or comma separated values (CSV). If the import may result in data loss, a confirmation dialog will be displayed. Option defaults will be pulled from the system defaults set up by the user in the Value Map Options component.

File Name

The name of the file including the path. Files must be XML or CSV format and must contain a map name.

Import Mode

Allows a user to import a definition, alter the definition via the define value maps component, and subsequently import data only. This gives users the ability to import a definition and then rename elements, or perhaps specify multiple elements for a domain prior to importing data. Valid values are:

  • Definition Only

  • Definition and Data

  • Values Only

Delete Map/Data Before Import

Select to delete existing definition and data prior to import (default). If this check box is cleared, append/merge is used. Append/merge allows a user to add elements, domains or data to an existing map without deleting existing data.

Note. This option is for advanced users only as they must understand the implications.

Column Separator

CSV files allow characters other than a comma to be utilized for delimiting column values. The value entered here is the delimiter value that will be used when reading the specified file. To specify a tab character, enter \t as the separator value.

Concatenation Separator

For V1 (FMW) schemas, if values are concatenated from multiple element domains into a single column during export or unconcatenated during an import of data only, this is the separator value to be used.

Import

Verifies the options and initiates the import process.

Click to jump to parent topicExporting Value Maps

This section provides an overview of export schemas and discusses how to export a value map.

Click to jump to top of pageClick to jump to parent topicUnderstanding Export Schemas

 

Value maps can be exported from the Define Value Maps page using the Export button. The map definition and data is published in an XML format using the options defined for the value map. The XML will conform to the schemas specified in the active version of the EOTF_DVM_EXPORT service operation.

See Enterprise PeopleTools PeopleBook: Integration Broker,Managing Service Operations, Configuring Service Operation Definitions

Click to jump to top of pageClick to jump to parent topicExporting a Value Map

To export a value map:

  1. Select Enterprise Components, Integration Definitions, Transformation Framework, Define Value Maps.

  2. Select the map you want to export.

  3. Click the Export button.