Hello Camunda Developers,
I’ve stomped twice with this little problem so I decided to share it with you.
Both CatchEvent and ThrowEvent interfaces extend from the Event interface. All event types extend either from CatchEvent (IntermediateCatchEvent, BoundaryEvent and StartEvent) or ThrowEvent (IntermediateThrowEvent, EndEvent).
The thing that bugs me is that the methods
getEventDefinitionsRef() are implemented in both sub-interfaces but not in the Event interface, which leads me to write my code twice to handle anything related to EventDefinitions.
So my proposal is simply to move those 2 methods to the Event interface.