157158159160161162163
} private void cleanDB() { String jobId = managementService.createJobQuery().singleResult().getId(); CommandExecutor commandExecutor = processEngineConfiguration.getCommandExecutorTxRequired(); commandExecutor.execute(new DeleteJobsCmd(jobId)); }
107108109110111112113114
} @Override protected void tearDown() throws Exception { repositoryService.deleteDeployment(deploymentId, true); commandExecutor.execute(new DeleteJobsCmd(messageId)); super.tearDown(); }
55565758596061
waitForJobExecutorToProcessAllJobs(15000L, 50L); // TODO check if there is a failed job in the DLQ commandExecutor.execute(new DeleteJobsCmd(jobId)); }
211212213214215216217218
.getCommandContext() .getJobManager() .findJobsByConfiguration(TimerStartEventJobHandler.TYPE, processDefinition.getKey()); for (Job job :jobsToDelete) { new DeleteJobsCmd(job.getId()).execute(Context.getCommandContext()); } }