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;
}
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;
}
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;
}
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;
}
Aggregations