What to do if an object can be related to multiple objects

Sometimes when you define relationships between business objects you may want to establish a relationship with different business object through the same reference attribute. For example, let us assume that you are defining an Account object and you want to establish a relationship between the account and its transactions by defining the MyTransactions reference attribute. However, you have several business objects that represent transactions – WithdrawalTransaction and DepositTransaction. These transactions have some different attributes and some common attributes (for example Amount).

The solution is to add different objects representing transactions into a business object group (called Transaction, for example) - see the “Adding/Editing Business Object Groups” section – and get the reference attribute to refer to a business object group rather than the individual business object (see the “Setting Properties of Reference Attributes” section).

  • Last modified: 2023/05/09 02:18