Mapping constant values – HP Quality Center Synchronizer 1.2 User Manual

Page 79

Advertising
background image

Chapter 3 • Creating Synchronization Links

79

Mapping Constant Values

Instead of mapping a field in one endpoint to a field in the other endpoint,
you can assign a constant value to a field. This value is assigned to the field
when the Synchronizer creates new entities. When the Synchronizer
updates existing entities, the constant value is not assigned to the field, and
the existing value is left unchanged.

Example 1: Suppose you have a required field in the Quality Center
endpoint, but you do not have a field to map it to in the other endpoint.
You can assign a constant value so that the required field is considered to be
mapped, and the integrity check for this link can pass.

Example 2: Suppose you want to distinguish between defects created directly
in Quality Center and those created in Quality Center by the Synchronizer.
You could create a defects field named Creation Method in Quality Center
and then assign this field the constant value Created by Quality Center
Synchronizer.

Note: If you assign a constant value to a string field and the length of the
constant value is longer that the maximum length of the string field, the
Synchronizer truncates the constant value.

To map constant values:

1

Select the link and verify that you are working in edit mode. For more
information, see “Editing Synchronization Link Settings” on page 99.

2

In the Field Mapping tab, in the fields list for the appropriate endpoint,
select the field to which you want to map a constant value.

Advertising