Hi team,
please find the javadelegate class high level structure
@Service
public class TaskDelegatorMessageEmitter implements JavaDelegate, ExecutionListener {
private FixedValue taskStatus;
private FixedValue taskState;
private Expression outBoundTopicName;
@Autowired(required = false)
private TaskEngineOutboundProducer taskEngineOutboundProducer;
#Override
public void execute(DelegateExecution execution) throws Exception {
populateAndPublish(execution);
}}
and this same delegate class is used in 2 different service tasks and we are injecting different values on 2 service tasks.
when i have gone through the documentation. it stated that camunda creates seperate instances during exectution but when it got executed concurrently on higher load test, the 2nd service task values are getting injected wrongly into 1st service task execution & vice versa since both are using same java delegate. is it the singelton class which is used in both places or will it create different instances even though we use spring annotations like @Service.
kindly clarify this part briefly.