Configuring Lookups

Lookups are executed by the SRT during the processing of an upstream XML service request. Lookups can be used to look up additional parameters that are required for activation of services, to format parameters so that they are compatible with service action parameters, and so forth. The Lookup library contains custom lookups that are used by the SRT only.

To create new lookups:

  1. Select Studio, then select Show Design Perspective.

  2. In the Studio Projects view, right-click and select New, select Activation, then select Lookup.

    Alternatively, select Studio, select New, select Activation, then select Lookup. The Studio Model Entity wizard appears.

  3. Select the applicable project from the list and enter a name for the lookup.

  4. Click Browse to open a Select Location dialog box and select a location from a list.

    This populates the Location field and specifies the folder under the cartridge project where the new lookup will be located. If no folder exists, type in the location name, which creates a new folder with that name.


    Specifying a location is optional, but is recommended to organize your elements and to avoid locating elements directly below the root folder.
  5. Click Finish.

    The new lookup appears under your project folder in Studio view.

    Use the Lookup editor to configure the lookup.

  6. Double-click the lookup entity.

    The Lookup editor opens.

  7. From the Type list, select a lookup type.

  8. If you select type as JAR, see "Selecting Lookup Class for JAR format" for more information.

  9. In the Lookup Properties area, define the properties for the lookup.

  10. In the Input Parameters tab, click Add.

    An input parameter is added.

  11. Click the specific row and configure in the Input Parameter Details area.

  12. In the Output Parameters tab, click Add.

    An output parameter is added.

  13. Click the specific row and configure in the Output Parameter Details area.

  14. Select File, then select Save.

Related Topics

Lookup Editor

Example: Configuring Lookups

Modeling ASAP SRT Implementations

Example: Configuring Lookups

If you have selected ASAP version 5.2 and have defined lookups with input parameters that map to other lookups, an additional source attribute is generated in the lookup model xml.

Precondition: SRT project is created for Activation 5.2.

Precondition: Two lookups are created in the same cartridge (for example LK1, LK2)

  1. Create a lookup.

    For example, LK3.

  2. Add an input parameter (lookup type).

  3. Map to another lookup.

    For example, map to LK1.

  4. Save the lookup.

  5. From the Package Explorer view, cartridgeBuild/model, examine the lookup.xml.

    For example, LK3.xml: A new attribute has been added called sourceDocument=

Consider the following code example, which illustrates the previous stepped procedure:

<lookupParameterName> outParm1</lookupParameterName>

would become

<lookupParameterName sourceDocument="LK1">outParm1-lk1</lookupParameterName> 

Related Topics

Lookup Editor

Modeling ASAP SRT Implementations

Selecting Lookup Class for JAR format

To select lookup class in the jar file that performs the lookup:

  1. On the Lookup editor, click Select to open Select Lookup Class dialog box.

  2. Do any one of the following:

    1. In the Select entries field, enter the name of a class which exists in a .jar file referenced in the classpath.

    2. Enter any character or string of characters contained in the class name. Matching class names appear in the Matching items area of the dialog box.

  3. Select a class name in the dialog box and click OK to populate the class name in the Class field.

Related Topics

Lookup Editor