Programmatic Registration
You can use the interceptor service to register new events or interception points via the appendInterceptionPoints() method. This way you can dynamically register events in your system:
1
public any appendInterceptionPoints( array or list customPoints )
Copied!
The value of the customPoints argument can be a list or an array of interception points to register so the interceptor service can manage them for you:
1
controller.getInterceptorService()
2
.appendInterceptionPoints( [ "onLog", "onError", "onRecordInserted" ] );
Copied!
Last modified 3yr ago
Copy link
Edit on GitHub