currently DefinitionService impl (inside jbpm-kie-services - BPMN2DataServiceImpl) relies on thread locals to collect process definition information (such as names, tasks, variables, etc).
That is caused by double parsing and changing the provider that is set as static element and this cannot be easily managed in multi thread environment - like workbench.
This issue is to refactor this to be plugged into regular parsing phase to avoid:
- thread locals
- double parse of the process