AsyncHistoryJobMessageReceiver

Hello guys,

by creating new object type AsyncHistoryJobMessageReceiver, I was using default constructor" which does not take any parameters" then I set AsyncHistoryJobMessageHandler and JobServiceConfiguration. But I faced this problem that AsyncHistoryJobMessageReceiver() is undefined and the only available constructor is public AsyncHistoryJobMessageReceiver(CommandExecutor commandExecutor,
AsyncHistoryJobMessageHandler asyncHistoryJobMessageHandler, JobServiceConfiguration jobServiceConfiguration). My question is what I have to set as CommandExecutor here? I have no clue about it.

I appreciated any help in this matter!
Thanks

You can get it from ProcessEngineConfiguration

@Autowired
SpringProcessEngineConfiguration springProcessEngineConfiguration;

CommandExecutor commandExecutor= springProcessEngineConfiguration.getCommandExecutor();
JobServiceConfiguration jobServiceConfiguration= springProcessEngineConfiguration.getJobServiceConfiguration();