I am using ADF 12.2.1.1 and I want to prevent delete some data like master data but existing child data. I know I can override Entity implement class in method remove() like for some data throw exception.
But how to do this by Groovy? If I add a Business Rule type Groovy Expression, I do not know if the current operation is delete in the Groovy method, so I cannot add the related logic.
Any idea?