Search in sources :

Example 1 with JBossUserGroupCallbackImpl

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

the class AsyncThrowSignalEventTest method setup.

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

Example 2 with JBossUserGroupCallbackImpl

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

the class CleanupExecutionErrorCommandWithProcessTest method setup.

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

Example 3 with JBossUserGroupCallbackImpl

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

the class CleanupLogCommandWithProcessTest method setup.

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

Example 4 with JBossUserGroupCallbackImpl

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

the class KjarRuntimeEnvironmentTest method setup.

@Before
public void setup() {
    TestUtil.cleanupSingletonSessionId();
    KieServices ks = KieServices.Factory.get();
    ReleaseId releaseId = ks.newReleaseId(GROUP_ID, ARTIFACT_ID, VERSION);
    List<String> processes = new ArrayList<String>();
    processes.add("BPMN2-ScriptTask.bpmn2");
    processes.add("BPMN2-UserTask.bpmn2");
    processes.add("BPMN2-CustomTask.bpmn2");
    InternalKieModule kJar1 = createKieJar(ks, releaseId, processes);
    File pom = new File("target/kmodule", "pom.xml");
    pom.getParentFile().mkdir();
    try {
        FileOutputStream fs = new FileOutputStream(pom);
        fs.write(getPom(releaseId).getBytes());
        fs.close();
    } catch (Exception e) {
    }
    KieMavenRepository repository = getKieMavenRepository();
    repository.installArtifact(releaseId, kJar1, pom);
    Properties properties = new Properties();
    properties.setProperty("mary", "HR");
    properties.setProperty("john", "HR");
    userGroupCallback = new JBossUserGroupCallbackImpl(properties);
    pds = TestUtil.setupPoolingDataSource();
}
Also used : JBossUserGroupCallbackImpl(org.jbpm.services.task.identity.JBossUserGroupCallbackImpl) FileOutputStream(java.io.FileOutputStream) ArrayList(java.util.ArrayList) KieMavenRepository.getKieMavenRepository(org.kie.scanner.KieMavenRepository.getKieMavenRepository) KieMavenRepository(org.kie.scanner.KieMavenRepository) KieServices(org.kie.api.KieServices) ReleaseId(org.kie.api.builder.ReleaseId) Properties(java.util.Properties) File(java.io.File) InternalKieModule(org.drools.compiler.kie.builder.impl.InternalKieModule) Before(org.junit.Before)

Example 5 with JBossUserGroupCallbackImpl

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

the class MultiInstanceCallActivityRuntimeManagerTest 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)

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