How to get JobManager from commandContext in flowable 6.3

Hi,

I want to move a timer job to executable job. So in flowable 6.0.0, I wrote like below

JobEntity job = commandContext.getJobManager().moveTimerJobToExecutableJob(timerJob);
commandContext.getJobManager().execute(job);

Now we are trying to upgrade to flowable 6.3, in this we are not able to get jobmanager to perform above code.

Please help asap

Hi,

You can use the ManagementService for this. The JobManager is a lower level class and it’s advised to use the service interfaces whenever possible. If you really want to use the JobManager then you can get it via the ProcessEngineConfiguration.

On the ManagementService you will find the moveTimerToExecutableJob and executeJob methods to do the same thing as in the code you shared.

Best regards,

Tijs