use of org.jbpm.services.task.identity.JBossUserGroupCallbackImpl in project jbpm by kiegroup.
the class ProcessKModuleMain method createRuntimeManager.
private static RuntimeManager createRuntimeManager() {
cleanupSingletonSessionId();
JBPMHelper.startH2Server();
JBPMHelper.setupDataSource();
EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.persistence.jpa");
RuntimeEnvironmentBuilder builder = RuntimeEnvironmentBuilder.Factory.get().newClasspathKmoduleDefaultBuilder().entityManagerFactory(emf).userGroupCallback(new JBossUserGroupCallbackImpl("classpath:/usergroups.properties"));
return RuntimeManagerFactory.Factory.get().newSingletonRuntimeManager(builder.get(), "com.sample:example:1.0");
}
use of org.jbpm.services.task.identity.JBossUserGroupCallbackImpl in project jbpm by kiegroup.
the class LocalTaskServiceTest method init.
@Before
public void init() throws Exception {
createRuntimeManager(HUMAN_TASK, EVALUATION, TASK_MULTIPLE_ACTORS, TASK_SINGLE_TYPE);
RuntimeEngine re = getRuntimeEngine();
kieSession = re.getKieSession();
taskService = LocalHTWorkItemHandlerUtil.registerLocalHTWorkItemHandler(kieSession, getEmf(), new JBossUserGroupCallbackImpl(USER_GROUP_RES));
}
use of org.jbpm.services.task.identity.JBossUserGroupCallbackImpl in project jbpm by kiegroup.
the class EjbTimerServiceIntegrationTest method setup.
@Before
public void setup() {
Properties properties = new Properties();
properties.setProperty("mary", "HR");
properties.setProperty("john", "HR");
properties.setProperty("krisv", "HR");
userGroupCallback = new JBossUserGroupCallbackImpl(properties);
}
use of org.jbpm.services.task.identity.JBossUserGroupCallbackImpl in project jbpm by kiegroup.
the class CDITestHelper method getUserGroupCallback.
@Produces
public UserGroupCallback getUserGroupCallback() {
Properties properties = new Properties();
properties.setProperty("mary", "HR");
properties.setProperty("john", "HR,Accounting");
properties.setProperty("salaboy", "HR,IT,Accounting");
properties.setProperty("katy", "HR,IT,Accounting,admins");
return new JBossUserGroupCallbackImpl(properties);
}
use of org.jbpm.services.task.identity.JBossUserGroupCallbackImpl in project jbpm by kiegroup.
the class AsyncContinuationSupportTest 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();
}
Aggregations