Subscriptions for Relationships

The API includes a set of methods that allow you to write custom functionality to allow end users to subscribe to a relationship event.

To define a relationship-level subscription event, see the instructions in Configuring Subscription Events. You must use the Global=true setting on the event command for the event to be configured on all relationships of a type and not just a single relationship connecting 2 business objects.

For a relationship-level subscription, you must create a Publish Subscribe relationship from another relationship to a Publish Subscribe object. The data model looks like this:



This Publish Subscribe business object is connected to an Event object using the Publish relationship. The Event object must have the Event Type attribute set, for example Create, and the Originator (the person who subscribed to the event).

To support this custom functionality, use the emxSubscriptionUtilBase JPO, which includes these methods. For details of the method signature and returned data, see the API documentation.