112113114115116117118119
} @Override protected void tearDown() throws Exception { repositoryService.deleteDeployment(deploymentId, true); commandExecutor.execute(new CancelJobsCmd(messageId)); super.tearDown(); }
275276277278279280281282
.getCommandContext() .getJobEntityManager() .findJobsByConfiguration(TimerStartEventJobHandler.TYPE, processDefinition.getKey()); for (Job job :jobsToDelete) { new CancelJobsCmd(job.getId()).execute(Context.getCommandContext()); } }
226227228229230231232
} private void cleanDB() { String jobId = managementService.createJobQuery().singleResult().getId(); CommandExecutor commandExecutor = processEngineConfiguration.getCommandExecutor(); commandExecutor.execute(new CancelJobsCmd(jobId)); }