Business Object

To implement the BODs for an OAGIS noun, a public BII is used. The BID will use the OAGIS noun as its name. The public implementation for this BII in LN will have a name that is equal to the noun with a postfix ‘BOD’. A protected implementation for a BID of type BOD can have ‘any’ name.

The postfix is used to avoid clashes with existing business objects (such as ‘PurchaseOrder’). For BIDs of type BOD, the corresponding business object in LN will always use the BII name as its name, also for public BIIs. Additionally, the LN Implementation Generator will report an error if the BID is of type BOD and the BII is public, but the BII name is unequal to the BID name with a postfix ‘BOD’.

Hint

It is advised to use multiple BIDs and BIIs to implement a BOD noun. In the first place, a BOD noun usually is a complex structure, combining multiple associated objects. For example, an order contains customer or supplier data, address data, item data, etc. Creating multiple business objects for this helps to implement the BOD in a structured way. In the second place, not only associated objects need to be separate business objects, but also the main object can be a separate BDE type of business object. This enables reuse of the BOD noun for BDE-based integrations. And it makes testing easier, because you can test underlying methods such as Show or Create, which otherwise cannot be tested from the LN Studio Test Tool, because in the BOD they will not be a part of the public interface.

An example is shown in the following picture: