use of org.jbpm.kie.services.impl.store.DeploymentSyncInvoker in project jbpm by kiegroup.
the class DeploymentServiceWithSyncTest method configureDeploymentSync.
protected void configureDeploymentSync() {
assertNotNull(deploymentService);
store = new DeploymentStore();
if (commandService == null) {
commandService = new TransactionalCommandService(emf);
}
store.setCommandService(commandService);
DeploymentSynchronizer sync = new DeploymentSynchronizer();
sync.setDeploymentService(deploymentService);
sync.setDeploymentStore(store);
invoker = new DeploymentSyncInvoker(sync, 1L, 1L, TimeUnit.SECONDS);
invoker.start();
}
use of org.jbpm.kie.services.impl.store.DeploymentSyncInvoker in project jbpm by kiegroup.
the class DeactivateDeploymentServiceWithSyncTest method configureDeploymentSync.
protected void configureDeploymentSync() {
assertNotNull(deploymentService);
store = new DeploymentStore();
if (commandService == null) {
commandService = new TransactionalCommandService(emf);
}
store.setCommandService(commandService);
sync = new DeploymentSynchronizer();
sync.setDeploymentService(deploymentService);
sync.setDeploymentStore(store);
invoker = new DeploymentSyncInvoker(sync, 1L, 1L, TimeUnit.SECONDS);
}
Aggregations