Inheritance of entities like objects?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hi-ko
    Member
    • May 2015
    • 99

    #1

    Inheritance of entities like objects?

    There is no way to inherit entity definitions, as is possible with object inheritance, is there? I would like to implement contracts that differ greatly by type in their properties and behavior depending on the contract type (e.g., purchase contract, service contract, usage rights) but share a common set on fields to be searched, listed, linked in workflow rules, emails, ...

    The only options I can think of are
    • one single entity has the sum of all fields, which are shown or hidden depending on the type
    • The data of the “superclass” is managed in a entity, while the data of the “inheriting” classes is managed in separate entities that have a parent/child relationship.
    • No "inheritance". Several entity types have all required fields on their own entity. Worflow rules / after save triggers will update an abstract entity to be searched on and linked to.
    Does anyone have a better idea?
  • a.slyzhko
    Senior Member
    • Oct 2023
    • 114

    #2
    You can use additional builder to dynamically add metadata for your needs. Check out documentation and coding example

    Comment

    Working...