Dear all,
I am new to this community so forgive me if I am writing in the wrong section
In our implementation we have an abstract class that implements JavaDelegate which sets few instance variables (among all the DelegationExecution, I think this is bad designed but it was done like this and probably it will take some time to fix).
We noticed that when we introduced Spring and marked the child classes that implements the real activity behaviour with @Component a lots of concurrency issues started to happen. We use camunda:class when defining the activities with the .bpmn file and I was expecting to see NPEs as mentioned in other topics with @Autowired beans within the @Component but this is working fine.
I read somewhere that with a spring bean we should use delegateExpression because otherwise the DI will not work but itโs not our case and I wonder how is this possible? What is really changing between the two ways? Can you point me to the classes that are dealing with it so that I can read the code and understand this mechanism better?