Class DefaultRuntimeEnvironment

  • All Implemented Interfaces:
    SchedulerProvider, org.kie.api.runtime.manager.RuntimeEnvironment, org.kie.internal.runtime.manager.RuntimeEnvironment

    public class DefaultRuntimeEnvironment
    extends SimpleRuntimeEnvironment
    Default implementation of the RuntimeEnvironment that aims at providing all common settings with a minimum need for configuration. It automatically configures the following components:
    • uses DefaultRegisterableItemsFactory to provide work item handlers and event listeners instances
    • EntityManagerFactory - if non given uses persistence unit with "org.jbpm.persistence.jpa" name
    • SchedulerService - if non given tries to discover if Quartz based scheduler shall be used by checking if "org.quartz.properties" system property is given, if not uses ThreadPool based scheduler with thread pool size set to 3
    • uses simple MVEL based UserGroupCallback that requires mvel files for users and groups to be present on classpath
    • Constructor Detail

      • DefaultRuntimeEnvironment

        public DefaultRuntimeEnvironment()
      • DefaultRuntimeEnvironment

        public DefaultRuntimeEnvironment​(javax.persistence.EntityManagerFactory emf)
      • DefaultRuntimeEnvironment

        public DefaultRuntimeEnvironment​(javax.persistence.EntityManagerFactory emf,
                                         GlobalSchedulerService globalSchedulerService)
      • DefaultRuntimeEnvironment

        public DefaultRuntimeEnvironment​(javax.persistence.EntityManagerFactory emf,
                                         boolean usePersistence)