Overriding Async Properties

How can i override async properties defined here

I tried this piece of code here , but does not seems to be working
@Slf4j
@Configuration
public abstract class CustomAsyncExecutor extends DefaultAsyncJobExecutor implements AsyncExecutor {

  CustomAsyncExecutor() {
this.getJobServiceConfiguration().setAsyncExecutorNumberOfRetries(3);
  }
}

Please help.
@filiphr

Does it work when you configure it according


in the process engine configuration?

Regards
Martin

The above code didn’t work at all.
I am not sure how to configure this in Process Engine Configuration.If you could guide me with any sample code or hint, I can try.

THanks

Is this a Spring Boot application? The custom async executor needs to be injected into the engine configuration.

However, in this particular case the property can immediately be set on the engine configuration by using

processEngineConfiguration.setAsyncHistoryExecutorNumberOfRetries(5);