Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to prevent delete some data by Groovy?

Jerry Wang 1116244-OracleOct 10 2016 — edited Oct 11 2016

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?

This post has been answered by Timo Hahn on Oct 10 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2016
Added on Oct 10 2016
4 comments
555 views