C-CPE-15試験無料問題集「SAP Certified Development Associate - SAP BTP Extensions with SAP Cloud Application Programming Model 認定」
DRAG DROP
You have implemented a simple bookshop CAP application for the purpose of selling books. You want to implement an event handler in the bookshop-service, that calculates a discount of 10 % on the price of books written in English ("en"). In all other cases, you want to calculate a discount of 5 %. The price should be calculated after books are read from the service. Drag the code snippets from below into the correct parts of the event handler implementation. Drag the key and value items from below into the correct parts of the descriptor file.
You have implemented a simple bookshop CAP application for the purpose of selling books. You want to implement an event handler in the bookshop-service, that calculates a discount of 10 % on the price of books written in English ("en"). In all other cases, you want to calculate a discount of 5 %. The price should be calculated after books are read from the service. Drag the code snippets from below into the correct parts of the event handler implementation. Drag the key and value items from below into the correct parts of the descriptor file.
正解:
'bookshop-service', after, 'READ', forEach, 'book.language == 'en', 'book.price = book.price * 0.95, book.price = book.price * 0.9