Search in sources :

Example 1 with SessionFactory

use of org.kie.internal.runtime.manager.SessionFactory in project jbpm by kiegroup.

the class RuntimeManagerFactoryImpl method newPerProcessInstanceRuntimeManager.

public RuntimeManager newPerProcessInstanceRuntimeManager(RuntimeEnvironment environment, String identifier) {
    SessionFactory factory = getSessionFactory(environment, identifier);
    TaskServiceFactory taskServiceFactory = getTaskServiceFactory(environment);
    RuntimeManager manager = new PerProcessInstanceRuntimeManager(environment, factory, taskServiceFactory, identifier);
    initTimerService(environment, manager);
    ((AbstractRuntimeManager) manager).init();
    return manager;
}
Also used : InMemorySessionFactory(org.jbpm.runtime.manager.impl.factory.InMemorySessionFactory) SessionFactory(org.kie.internal.runtime.manager.SessionFactory) JPASessionFactory(org.jbpm.runtime.manager.impl.factory.JPASessionFactory) LocalTaskServiceFactory(org.jbpm.runtime.manager.impl.factory.LocalTaskServiceFactory) TaskServiceFactory(org.kie.internal.runtime.manager.TaskServiceFactory) RuntimeManager(org.kie.api.runtime.manager.RuntimeManager)

Example 2 with SessionFactory

use of org.kie.internal.runtime.manager.SessionFactory in project jbpm by kiegroup.

the class RuntimeManagerFactoryImpl method newPerRequestRuntimeManager.

public RuntimeManager newPerRequestRuntimeManager(RuntimeEnvironment environment, String identifier) {
    SessionFactory factory = getSessionFactory(environment, identifier);
    TaskServiceFactory taskServiceFactory = getTaskServiceFactory(environment);
    RuntimeManager manager = new PerRequestRuntimeManager(environment, factory, taskServiceFactory, identifier);
    initTimerService(environment, manager);
    ((AbstractRuntimeManager) manager).init();
    return manager;
}
Also used : InMemorySessionFactory(org.jbpm.runtime.manager.impl.factory.InMemorySessionFactory) SessionFactory(org.kie.internal.runtime.manager.SessionFactory) JPASessionFactory(org.jbpm.runtime.manager.impl.factory.JPASessionFactory) LocalTaskServiceFactory(org.jbpm.runtime.manager.impl.factory.LocalTaskServiceFactory) TaskServiceFactory(org.kie.internal.runtime.manager.TaskServiceFactory) RuntimeManager(org.kie.api.runtime.manager.RuntimeManager)

Example 3 with SessionFactory

use of org.kie.internal.runtime.manager.SessionFactory in project jbpm by kiegroup.

the class RuntimeManagerFactoryImpl method newPerCaseRuntimeManager.

public RuntimeManager newPerCaseRuntimeManager(RuntimeEnvironment environment, String identifier) {
    SessionFactory factory = getSessionFactory(environment, identifier);
    TaskServiceFactory taskServiceFactory = getTaskServiceFactory(environment);
    RuntimeManager manager = new PerCaseRuntimeManager(environment, factory, taskServiceFactory, identifier);
    initTimerService(environment, manager);
    ((AbstractRuntimeManager) manager).init();
    return manager;
}
Also used : InMemorySessionFactory(org.jbpm.runtime.manager.impl.factory.InMemorySessionFactory) SessionFactory(org.kie.internal.runtime.manager.SessionFactory) JPASessionFactory(org.jbpm.runtime.manager.impl.factory.JPASessionFactory) LocalTaskServiceFactory(org.jbpm.runtime.manager.impl.factory.LocalTaskServiceFactory) TaskServiceFactory(org.kie.internal.runtime.manager.TaskServiceFactory) RuntimeManager(org.kie.api.runtime.manager.RuntimeManager)

Example 4 with SessionFactory

use of org.kie.internal.runtime.manager.SessionFactory in project jbpm by kiegroup.

the class RuntimeManagerFactoryImpl method newSingletonRuntimeManager.

@Override
public RuntimeManager newSingletonRuntimeManager(RuntimeEnvironment environment, String identifier) {
    SessionFactory factory = getSessionFactory(environment, identifier);
    TaskServiceFactory taskServiceFactory = getTaskServiceFactory(environment);
    RuntimeManager manager = new SingletonRuntimeManager(environment, factory, taskServiceFactory, identifier);
    initTimerService(environment, manager);
    ((AbstractRuntimeManager) manager).init();
    return manager;
}
Also used : InMemorySessionFactory(org.jbpm.runtime.manager.impl.factory.InMemorySessionFactory) SessionFactory(org.kie.internal.runtime.manager.SessionFactory) JPASessionFactory(org.jbpm.runtime.manager.impl.factory.JPASessionFactory) LocalTaskServiceFactory(org.jbpm.runtime.manager.impl.factory.LocalTaskServiceFactory) TaskServiceFactory(org.kie.internal.runtime.manager.TaskServiceFactory) RuntimeManager(org.kie.api.runtime.manager.RuntimeManager)

Aggregations

InMemorySessionFactory (org.jbpm.runtime.manager.impl.factory.InMemorySessionFactory)4 JPASessionFactory (org.jbpm.runtime.manager.impl.factory.JPASessionFactory)4 LocalTaskServiceFactory (org.jbpm.runtime.manager.impl.factory.LocalTaskServiceFactory)4 RuntimeManager (org.kie.api.runtime.manager.RuntimeManager)4 SessionFactory (org.kie.internal.runtime.manager.SessionFactory)4 TaskServiceFactory (org.kie.internal.runtime.manager.TaskServiceFactory)4