How to implement interfaces in Pega
We have a requirement on a project that certain cases need to implement a functionality (handling documents notifications).
In Java this would be handled via an interface (and a method "handeDocument(...)" ).
I Pega we could have an activity but it's hard to enforce a contract just as an interface does. One solution is to have a common abstract class with an abstract method but when not all of the cases have to implement the method this would not work.
Any suggestions?