Jacopo,
The tutorials that you referenced are for the commercial version of Flowable and that is why you probably had some problems.
I would suggest that you take a look at this forum discussion: Java Service Task in Designer / Modeler.
Hope that helps make things a little clearer.