IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Defining and transforming data > Create relationships > Static relationships > Invoking static relationships from maps

Calling static relationships in an outbound map

You can invoke a static relationship by calling it in an outbound map.

To call a static relationship in an outbound map, follow these steps:


Procedure

  1. Create a map AddressToClarifyAddress.

  2. Create a custom transformation between Address and ClarifyAddress:

  3. Click Details on the Properties tab:

  4. Add the code shown above to the Java code section. This code will call the retrieveParticipants API of the relationship service. This API will return a List of ClarifyAddress business objects. If that in this example, this is a one to one relationship, therefore, there will be only one ClarifyAddress business object in the list.
  5. Get the value of “state” from the ClarifyAddress business object returned from the relationship call.
  6. Set the “state” value in ClarifyAddress business object that is the output of the map.

Invoking static relationships from maps