在主从应用程序中,我从 CDS 添加 BOPF 以创建、编辑、删除项目(odata)。它工作正常,但我如何扩展标准 CRUD 操作?例如,我想在创建或更新项目时发送邮件。这就是我在 CDS 中添加 BOPF 的方式:
// BOPF CRUD
@Metadata.allowExtensions: true
@ObjectModel:{
modelCategory: #BUSINESS_OBJECT,
compositionRoot: true,
transactionalProcessingEnabled: true,
createEnabled: true,
updateEnabled: true,
deleteEnabled: true,
writeActivePersistence: 'ZGUT_TEST_UI5'
}