If anyone has a cleaner solution, be welcome to correct me.
In fact I don't understand the reason of some mappings of the jbpm4 tables. For instance, why does the DeploymentImpl class contain a protected Map<String, Lob> resources, where the key set are the resource names? Shouldn't there be only ONE resource name (and respective Lob) per deployment?
That is why I have this nasty
resourceName = deployment.getResourceNames().iterator().next();
in my code...
Instead of a simple deployment.getResourceName();
Cheers.
Andrea