Event listener implementation

Hi Guys,

We are integrating flowable rest app with our application. It allows to create processes using modeler angular js app and rest & task takes care of deploying and running it. We are looking for help for approach for implementing event listener in Service Task. Here is the scenario:

  1. There is a process with service task in between. We have event listener configuration in service task.
  2. It asks for event name and class name is event listener configuration. We know it needs to be java class with: https://www.flowable.org/docs/javadocs/org/flowable/engine/delegate/JavaDelegate.html this implementation. Then compile and put it in engine (in our case rest application) classpath.

Wanted to check if this approach is correct? Or there is any other way to implement these java classes?