This topic applies only to the IBM Business Automation Workflow Advanced
configuration.

Calling static relationships from an inbound map

Draft comment:
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15
You can invoke a static relationship by calling it from an inbound map.

About this task

To call a static relationship from an inbound map, follow these steps:

Procedure

  1. Create a map called SAPAddressToAddress (for example).
  2. Create a custom transformation from SAPAddress to Address:
    Custom transformation
    This custom transformation will call the static relationship API.
  3. Click Details on the Properties tab. This will show the Java™ code window.
  4. Call the retrieveInstanceIds API passing in the relationshipName, roleName and the input business object. A list of instanceIds will be returned. Note that in this example, this is a one to one relationship, therefore, there will be only one value in the list. Also note that when passing in relationship and role names into the APIs, they must be prefixed with the namespace. In the example, "http://Test/StateRelationship" and "http://Test/SAPAddressRole" are used.
  5. Set the instanceId value to the state property in output business object Address.
  6. In the outbound map, AddressToClarifyAddress, use this state value from Address to get the state value for ClarifyAddress.
    Java code for outbound map
  7. To do this, the piece of custom code above will need the following imports shown below. Click Java Imports on the Properties tab:
    Java code for import