For this approach it’s easier to set the class (that implements the JavaDelegate interface) on the service task. So that Flowable instantiates this.
If you want to use Spring beans then more configuration is required. In that cause I would create a custom project and build that.
But if that is not needed the first approach is really quick and easy.
My situation is that the project team is using .NET as a main programming language so they don’t have many experience in Java that why I want to have a custom bean intead of write Java delegate for each service task.