Search in sources :

Example 6 with QuartzSchedulerService

use of org.jbpm.process.core.timer.impl.QuartzSchedulerService in project jbpm by kiegroup.

the class GlobalQuartzRAMTimerServiceTest method setUp.

@Before
public void setUp() {
    tearDownOnce();
    setUpOnce();
    cleanupSingletonSessionId();
    emf = Persistence.createEntityManagerFactory("org.jbpm.test.persistence");
    System.setProperty("org.quartz.properties", "quartz-ram.properties");
    globalScheduler = new QuartzSchedulerService();
    ((QuartzSchedulerService) globalScheduler).forceShutdown();
}
Also used : QuartzSchedulerService(org.jbpm.process.core.timer.impl.QuartzSchedulerService) Before(org.junit.Before)

Aggregations

QuartzSchedulerService (org.jbpm.process.core.timer.impl.QuartzSchedulerService)6 Before (org.junit.Before)4 ArrayList (java.util.ArrayList)2 NodeLeftCountDownProcessEventListener (org.jbpm.test.listener.NodeLeftCountDownProcessEventListener)2 DefaultProcessEventListener (org.kie.api.event.process.DefaultProcessEventListener)2 ProcessEventListener (org.kie.api.event.process.ProcessEventListener)2 Properties (java.util.Properties)1 EntityManagerFactory (javax.persistence.EntityManagerFactory)1 AbstractRuntimeManager (org.jbpm.runtime.manager.impl.AbstractRuntimeManager)1 SimpleRuntimeEnvironment (org.jbpm.runtime.manager.impl.SimpleRuntimeEnvironment)1 JBossUserGroupCallbackImpl (org.jbpm.services.task.identity.JBossUserGroupCallbackImpl)1 After (org.junit.After)1 Test (org.junit.Test)1 ProcessNodeLeftEvent (org.kie.api.event.process.ProcessNodeLeftEvent)1 ProcessStartedEvent (org.kie.api.event.process.ProcessStartedEvent)1 KieSession (org.kie.api.runtime.KieSession)1 RuntimeEngine (org.kie.api.runtime.manager.RuntimeEngine)1 RuntimeEnvironment (org.kie.api.runtime.manager.RuntimeEnvironment)1