Search in sources :

Example 1 with ThreadPoolSchedulerService

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

the class ConcurrentGlobalTimerServiceTest method setup.

@Before
public void setup() {
    Properties properties = new Properties();
    properties.setProperty("mary", "HR");
    properties.setProperty("john", "HR");
    userGroupCallback = new JBossUserGroupCallbackImpl(properties);
    globalScheduler = new ThreadPoolSchedulerService(1);
    emf = Persistence.createEntityManagerFactory("org.jbpm.test.persistence");
}
Also used : ThreadPoolSchedulerService(org.jbpm.process.core.timer.impl.ThreadPoolSchedulerService) JBossUserGroupCallbackImpl(org.jbpm.services.task.identity.JBossUserGroupCallbackImpl) Properties(java.util.Properties) Before(org.junit.Before)

Example 2 with ThreadPoolSchedulerService

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

the class GlobalThreadPoolTimerServiceTest method setUp.

@Before
public void setUp() {
    cleanupSingletonSessionId();
    emf = Persistence.createEntityManagerFactory("org.jbpm.test.persistence");
    globalScheduler = new ThreadPoolSchedulerService(1);
}
Also used : TransactionalThreadPoolSchedulerService(org.jbpm.test.functional.timer.addon.TransactionalThreadPoolSchedulerService) ThreadPoolSchedulerService(org.jbpm.process.core.timer.impl.ThreadPoolSchedulerService) Before(org.junit.Before)

Aggregations

ThreadPoolSchedulerService (org.jbpm.process.core.timer.impl.ThreadPoolSchedulerService)2 Before (org.junit.Before)2 Properties (java.util.Properties)1 JBossUserGroupCallbackImpl (org.jbpm.services.task.identity.JBossUserGroupCallbackImpl)1 TransactionalThreadPoolSchedulerService (org.jbpm.test.functional.timer.addon.TransactionalThreadPoolSchedulerService)1