Show TOC

Entity ContextLocate this document in the navigation structure

Use

You can use model information in the implementation of an entity. Business Object Processing Framework (BOPF) provides an entity context as an importing parameter of the interface of the entity. It contains information about the business object, the assigned node of the entity, the key of the entity, and further static model information.

Example

To ensure that an invoice amount is only entered in USD or EUR, the CHECK_CURRENCY validation is defined at the ROOT node and at the ITEM node. Since the validation logic is identical on both nodes, the same implementing class is maintained for both consistency validations. The RETRIEVE core service must be called on the assigned node of the validation whose node key can be received from the validation context.