Hi Thorben,
Your explanation is really clear, got it!
The purpose I want to solve is the following:
2.- In my process diagram, when I start a new instance, I pass a DTO (Data Transfer Object, it's really a POJO) with several values inside. The goal is that this DTO is processed inside SaveRecruitingTask: it picks up these values, saves them into the database and sets the resulting entities Id's as instance variables, and then the DTO is discarded and removed from the instance variables.
Since (1) needs an accessor (getter/setter) for this DTO in order to access that instance variable a reference to my DTO's maven module is needed. I thought I could get rid of that reference by avoiding to create an instance variable for this DTO, maybe by using local variables, or task variables, but I see that I cannot use it with serviceTasks, because I just get a new task instance for userTasks, when the engine is waiting for this task to be "completed".
If I can avoid references from my DataAccessor to my DTO's modules then I could put all of my DTO's accessors in a more "commons" module, so that those accessors would be easier to be used from my JavaDelegate tasks, from my Camel processors, and from my liferay JSF frontend...
Maybe I would need a userTask as a first task in my process in order to be able to use my DTO as a local variable inside a listener attached to it? Or maybe this is not a good usage for this situation?
One reason to pass this DTO with several fields of info was that even when my process instances didn't progress to further tasks it would be easy to have some info to be retrieved from my process instance in order to be rendered in a grid showing my in-progress instances with some user-friendly info...
Thanks in advance, I hope that I didn't bother you too much with this explanation about my goal when using local variables.
Best regards :-)