Search in sources :

Example 11 with JBossUserGroupCallbackImpl

use of org.jbpm.services.task.identity.JBossUserGroupCallbackImpl in project jbpm by kiegroup.

the class InMemorySessionFactoryLeakTest method setup.

@Before
public void setup() throws NamingException {
    TestUtil.cleanupSingletonSessionId();
    Properties properties = new Properties();
    properties.setProperty("mary", "HR");
    properties.setProperty("john", "HR");
    userGroupCallback = new JBossUserGroupCallbackImpl(properties);
    createRuntimeManager();
}
Also used : JBossUserGroupCallbackImpl(org.jbpm.services.task.identity.JBossUserGroupCallbackImpl) Properties(java.util.Properties) Before(org.junit.Before)

Example 12 with JBossUserGroupCallbackImpl

use of org.jbpm.services.task.identity.JBossUserGroupCallbackImpl in project jbpm by kiegroup.

the class ConcurrentOperationsTest method setup.

@Before
public void setup() {
    TestUtil.cleanupSingletonSessionId();
    pds = TestUtil.setupPoolingDataSource();
    Properties properties = new Properties();
    properties.setProperty("mary", "HR");
    properties.setProperty("john", "HR");
    userGroupCallback = new JBossUserGroupCallbackImpl(properties);
}
Also used : JBossUserGroupCallbackImpl(org.jbpm.services.task.identity.JBossUserGroupCallbackImpl) Properties(java.util.Properties) Before(org.junit.Before)

Example 13 with JBossUserGroupCallbackImpl

use of org.jbpm.services.task.identity.JBossUserGroupCallbackImpl in project jbpm by kiegroup.

the class EventHnadlingTest method setup.

@Before
public void setup() {
    TestUtil.cleanupSingletonSessionId();
    pds = TestUtil.setupPoolingDataSource();
    Properties properties = new Properties();
    properties.setProperty("mary", "HR");
    properties.setProperty("john", "HR");
    userGroupCallback = new JBossUserGroupCallbackImpl(properties);
}
Also used : JBossUserGroupCallbackImpl(org.jbpm.services.task.identity.JBossUserGroupCallbackImpl) Properties(java.util.Properties) Before(org.junit.Before)

Example 14 with JBossUserGroupCallbackImpl

use of org.jbpm.services.task.identity.JBossUserGroupCallbackImpl in project jbpm by kiegroup.

the class AdHocSubprocessAbortRuntimeManagerTest method setup.

@Before
public void setup() {
    TestUtil.cleanupSingletonSessionId();
    pds = TestUtil.setupPoolingDataSource();
    emf = EntityManagerFactoryManager.get().getOrCreate("org.jbpm.persistence.jpa");
    Properties properties = new Properties();
    properties.setProperty("mary", "HR");
    properties.setProperty("john", "HR");
    userGroupCallback = new JBossUserGroupCallbackImpl(properties);
}
Also used : JBossUserGroupCallbackImpl(org.jbpm.services.task.identity.JBossUserGroupCallbackImpl) Properties(java.util.Properties) Before(org.junit.Before)

Example 15 with JBossUserGroupCallbackImpl

use of org.jbpm.services.task.identity.JBossUserGroupCallbackImpl in project jbpm by kiegroup.

the class InMemorySingletonRuntimeManagerTest method setup.

@Before
public void setup() {
    TestUtil.cleanupSingletonSessionId();
    Properties properties = new Properties();
    properties.setProperty("mary", "HR");
    properties.setProperty("john", "HR");
    userGroupCallback = new JBossUserGroupCallbackImpl(properties);
}
Also used : JBossUserGroupCallbackImpl(org.jbpm.services.task.identity.JBossUserGroupCallbackImpl) Properties(java.util.Properties) Before(org.junit.Before)

Aggregations

JBossUserGroupCallbackImpl (org.jbpm.services.task.identity.JBossUserGroupCallbackImpl)41 Properties (java.util.Properties)38 Before (org.junit.Before)29 HashMap (java.util.HashMap)8 UserGroupCallback (org.kie.api.task.UserGroupCallback)8 Test (org.junit.Test)7 RuntimeEngine (org.kie.api.runtime.manager.RuntimeEngine)7 ArrayList (java.util.ArrayList)6 KieSession (org.kie.api.runtime.KieSession)6 ProcessInstance (org.kie.api.runtime.process.ProcessInstance)6 WorkflowProcessInstance (org.jbpm.workflow.instance.WorkflowProcessInstance)5 NodeLeftCountDownProcessEventListener (org.jbpm.test.listener.NodeLeftCountDownProcessEventListener)4 DefaultProcessEventListener (org.kie.api.event.process.DefaultProcessEventListener)4 ProcessEventListener (org.kie.api.event.process.ProcessEventListener)4 ProcessNodeLeftEvent (org.kie.api.event.process.ProcessNodeLeftEvent)4 RuntimeEnvironment (org.kie.api.runtime.manager.RuntimeEnvironment)4 Status (org.kie.api.task.model.Status)4 TaskSummary (org.kie.api.task.model.TaskSummary)4 UserTransaction (javax.transaction.UserTransaction)3 SessionNotFoundException (org.kie.internal.runtime.manager.SessionNotFoundException)3