Hi Stefano,
Of course, you could implement your idGenerator for jBPM4. And using sequence is the previous way of jBPM4 using. It changed to use JBPM4_PROPERTY since jBPM-4.2.
By the way, some days earlier, you said you will use drools flow instead. I don't know much about it. Did it powerful? Did it easy to use?