Search in sources :

Example 1 with DeploymentSyncInvoker

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();
}
Also used : DeploymentStore(org.jbpm.kie.services.impl.store.DeploymentStore) DeploymentSyncInvoker(org.jbpm.kie.services.impl.store.DeploymentSyncInvoker) DeploymentSynchronizer(org.jbpm.kie.services.impl.store.DeploymentSynchronizer) TransactionalCommandService(org.jbpm.shared.services.impl.TransactionalCommandService)

Example 2 with DeploymentSyncInvoker

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);
}
Also used : DeploymentStore(org.jbpm.kie.services.impl.store.DeploymentStore) DeploymentSyncInvoker(org.jbpm.kie.services.impl.store.DeploymentSyncInvoker) DeploymentSynchronizer(org.jbpm.kie.services.impl.store.DeploymentSynchronizer) TransactionalCommandService(org.jbpm.shared.services.impl.TransactionalCommandService)

Aggregations

DeploymentStore (org.jbpm.kie.services.impl.store.DeploymentStore)2 DeploymentSyncInvoker (org.jbpm.kie.services.impl.store.DeploymentSyncInvoker)2 DeploymentSynchronizer (org.jbpm.kie.services.impl.store.DeploymentSynchronizer)2 TransactionalCommandService (org.jbpm.shared.services.impl.TransactionalCommandService)2