--- /dev/null
+<environment-definition>\r
+\r
+ <environment-factory>\r
+ <!-- Start of command-service-->\r
+ <!-- Description: Service which executes commands -->\r
+ <command-service>\r
+ <retry-interceptor />\r
+ <environment-interceptor />\r
+ <standard-transaction-interceptor />\r
+ </command-service>\r
+ <!-- End of command-service-->\r
+\r
+ <!-- Start of finished-instance-handler-->\r
+ <!-- Description: List of services called when an instance is finished. -->\r
+ <chainer name='finished-instance-handler'>\r
+ <!-- Start of org.ow2.bonita.services.handlers.impl.DeleteFinishedInstanceHandler-->\r
+ <!-- Description: -->\r
+ <object class='org.ow2.bonita.services.handlers.impl.DeleteFinishedInstanceHandler' />\r
+ <!-- End of org.ow2.bonita.services.handlers.impl.DeleteFinishedInstanceHandler-->\r
+ <!-- Start of org.ow2.bonita.services.handlers.impl.ArchiveFinishedInstanceHandler-->\r
+ <!-- Description: -->\r
+ <object class='org.ow2.bonita.services.handlers.impl.ArchiveFinishedInstanceHandler' />\r
+ <!-- End of org.ow2.bonita.services.handlers.impl.ArchiveFinishedInstanceHandler-->\r
+ </chainer>\r
+ <!-- End of finished-instance-handler-->\r
+\r
+ <!-- Start of hibernate-configuration:core-->\r
+ <!-- Description: Configuration of the Hibernate session factory used by engine. -->\r
+ <hibernate-configuration name='hibernate-configuration:core' >\r
+ <properties resource='hibernate-Bonita.properties' />\r
+ <mappings resource='bonita.runtime.mappings.hbm.xml' />\r
+ <mappings resource='bonita.querier.mappings.hbm.xml' />\r
+ <cache-configuration resource='bonita.querier.cache.xml' usage='read-write' />\r
+ </hibernate-configuration>\r
+ <!-- End of hibernate-configuration:core-->\r
+\r
+ <!-- Start of hibernate-configuration:history-->\r
+ <!-- Description: Configuration of the Hibernate session factory used by db history. -->\r
+ <hibernate-configuration name='hibernate-configuration:history' >\r
+ <properties resource='hibernate-Bonita-history.properties' />\r
+ <mappings resource='bonita.history.mappings.hbm.xml' />\r
+ <mappings resource='bonita.querier.mappings.hbm.xml' />\r
+ <cache-configuration resource='bonita.querier.cache.xml' usage='read-write' />\r
+ </hibernate-configuration>\r
+ <!-- End of hibernate-configuration:history-->\r
+\r
+ <!-- Start of hibernate-configuration:journal-->\r
+ <!-- Description: Configuration of the Hibernate session factory used by journal (in a separate db). -->\r
+ <!--\r
+ <hibernate-configuration name='hibernate-configuration:journal' >\r
+ <properties resource='hibernate-journal.properties' />\r
+ <mappings resource='bonita.history.mappings.hbm.xml' />\r
+ <mappings resource='bonita.querier.mappings.hbm.xml' />\r
+ <cache-configuration resource='bonita.querier.cache.xml' usage='read-write' />\r
+ </hibernate-configuration>\r
+ -->\r
+ <!-- End of hibernate-configuration:journal-->\r
+\r
+ <!-- Start of hibernate-session-factory:core-->\r
+ <!-- Description: Hibernate session factory used by engine. -->\r
+ <hibernate-session-factory name='hibernate-session-factory:core' configuration='hibernate-configuration:core' init='eager'/>\r
+ <!-- End of hibernate-session-factory:core-->\r
+\r
+ <!-- Start of hibernate-session-factory:history-->\r
+ <!-- Description: Hibernate session factory used by db history. -->\r
+ <hibernate-session-factory name='hibernate-session-factory:history' configuration='hibernate-configuration:history' init='eager'/>\r
+ <!-- End of hibernate-session-factory:history-->\r
+\r
+ <!-- Start of hibernate-session-factory:journal-->\r
+ <!-- Description: Hibernate session factory used by journal (in a separate db). -->\r
+ <!--\r
+ <hibernate-session-factory name='hibernate-session-factory:journal' configuration='hibernate-configuration:journal' init='eager'/>\r
+ -->\r
+ <!-- End of hibernate-session-factory:journal-->\r
+\r
+ <!-- Start of hook-executor-->\r
+ <!-- Description: Implementation of the HookExecutor interface which will be used to execute hooks in the engine. -->\r
+ <object name='hook-executor' class='org.ow2.bonita.definition.activity.HookExecutorImpl' />\r
+ <!-- End of hook-executor-->\r
+\r
+ <!-- Start of job-executor-->\r
+ <!-- Description: Service which executes jobs -->\r
+ <job-executor threads='10' auto-start='true' />\r
+ <!-- End of job-executor-->\r
+\r
+ <!-- Start of type-resolver-->\r
+ <!-- Description: Mapping from java variable to database type -->\r
+ <variable-types resource='bonita.type.resolver.xml' />\r
+ <!-- End of type-resolver-->\r
+\r
+ <!-- Start of undeployed-package-handler-->\r
+ <!-- Description: List of services called when a package is undeployed. -->\r
+ <chainer name='undeployed-package-handler'>\r
+ <!-- Start of org.ow2.bonita.services.handlers.impl.ArchiveUndeployedPackageHandler-->\r
+ <!-- Description: -->\r
+ <object class='org.ow2.bonita.services.handlers.impl.ArchiveUndeployedPackageHandler' />\r
+ <!-- End of org.ow2.bonita.services.handlers.impl.ArchiveUndeployedPackageHandler-->\r
+ </chainer>\r
+ <!-- End of undeployed-package-handler-->\r
+\r
+ <!-- Start of uuid-generator-->\r
+ <!-- Description: Service which generates UUIDs for runtime objects. -->\r
+ <object name='uuid-generator' class='org.ow2.bonita.services.impl.DefaultUUIDGenerator' />\r
+ <!-- End of uuid-generator-->\r
+\r
+ </environment-factory>\r
+\r
+ <environment>\r
+ <!-- Start of Db history-->\r
+ <!-- Description: DB Implementation of the history. This implementation is full conformant with the spec (but not optimized). -->\r
+ <!--\r
+ <history name='history' class='org.ow2.bonita.persistence.db.DbHistory'/>\r
+ -->\r
+ <!-- End of Db history-->\r
+\r
+ <!-- Start of Optimized DB history-->\r
+ <!-- Description: Optimized DB Implementation of the history. This implementation contains optimized methods. For example, a call to getUserTasks(final String userId, final ActivityState taskState) looks in DB only if the state is an expected one in History (FINISHED is one, READY is not...) -->\r
+ <history name='history' class='org.ow2.bonita.persistence.db.OptimizedDbHistory'>\r
+ <arg><string value='querier-session:history' /></arg>\r
+ </history>\r
+ <!-- End of Optimized DB history-->\r
+\r
+ <!-- Start of XML history-->\r
+ <!-- Description: XML Implementation of the history. -->\r
+ <!--\r
+ <history name='history' class='org.ow2.bonita.persistence.xml.XMLHistory'/>\r
+ -->\r
+ <!-- End of XML history-->\r
+\r
+ <!-- Start of archiver-->\r
+ <!-- Description: List of archivers. -->\r
+ <chainer name='archiver'>\r
+ <!-- Start of Log archiver-->\r
+ <!-- Description: Archiver which writes archived data to logs. -->\r
+ <archiver class='org.ow2.bonita.persistence.log.LoggerArchiver' />\r
+ <!-- End of Log archiver-->\r
+ <!-- Start of history-->\r
+ <!-- Description: Reference to the history -->\r
+ <ref object='history' />\r
+ <!-- End of history-->\r
+ </chainer>\r
+ <!-- End of archiver-->\r
+\r
+ <!-- Start of hibernate-session:core-->\r
+ <!-- Description: Hibernate session used by engine. -->\r
+ <hibernate-session name='hibernate-session:core' factory='hibernate-session-factory:core' />\r
+ <!-- End of hibernate-session:core-->\r
+\r
+ <!-- Start of hibernate-session:history-->\r
+ <!-- Description: Hibernate session used by db history. -->\r
+ <hibernate-session name='hibernate-session:history' factory='hibernate-session-factory:history' />\r
+ <!-- End of hibernate-session:history-->\r
+\r
+ <!-- Start of hibernate-session:journal-->\r
+ <!-- Description: Hibernate session used by journal (in a separate db). -->\r
+ <!--\r
+ <hibernate-session name='hibernate-session:journal' factory='hibernate-session-factory:journal' />\r
+ -->\r
+ <!-- End of hibernate-session:journal-->\r
+\r
+ <!-- Start of job-session-->\r
+ <!-- Description: Service which stores jobs in the database. -->\r
+ <job-db-session session='hibernate-session:core' />\r
+ <!-- End of job-session-->\r
+\r
+ <!-- Start of journal-->\r
+ <!-- Description: Implementation of the journal. -->\r
+ <journal name='journal' class='org.ow2.bonita.persistence.db.DbJournal'> \r
+ <arg><string value='querier-session:core' /></arg>\r
+ <!-- replace previous line by this line to use a separate journal -->\r
+ <!-- <arg><string value='querier-session:journal' /></arg> -->\r
+ </journal>\r
+ <!-- End of journal-->\r
+\r
+ <!-- Start of message_session-->\r
+ <!-- Description: Service which schedules messages. -->\r
+ <message-session />\r
+ <!-- End of message_session-->\r
+\r
+ <!-- Start of querier-session:core-->\r
+ <!-- Description: Querier used in engine. -->\r
+ <querier-db-session name='querier-session:core' session='hibernate-session:core'/>\r
+ <!-- End of querier-session:core-->\r
+\r
+ <!-- Start of querier-session:history-->\r
+ <!-- Description: Querier used in db history. -->\r
+ <querier-db-session name='querier-session:history' session='hibernate-session:history'/>\r
+ <!-- End of querier-session:history-->\r
+\r
+ <!-- Start of querier-session:journal-->\r
+ <!-- Description: Querier used in journal (in a separate db). -->\r
+ <!--\r
+ <querier-db-session name='querier-session:journal' session='hibernate-session:journal'/>\r
+ -->\r
+ <!-- End of querier-session:journal-->\r
+\r
+ <!-- Start of queryList-->\r
+ <!-- Description: List of Queriers to use. -->\r
+ <queryApi name='queryList'>\r
+ <!-- Start of journal-->\r
+ <!-- Description: Reference to the journal -->\r
+ <ref object='journal' />\r
+ <!-- End of journal-->\r
+ <!-- Start of history-->\r
+ <!-- Description: Reference to the history -->\r
+ <ref object='history' />\r
+ <!-- End of history-->\r
+ </queryApi>\r
+ <!-- End of queryList-->\r
+\r
+ <!-- Start of recorder-->\r
+ <!-- Description: List of recorders. -->\r
+ <chainer name='recorder'>\r
+ <!-- Start of Log recorder-->\r
+ <!-- Description: Recorder which writes recorded data to logs. -->\r
+ <recorder class='org.ow2.bonita.persistence.log.LoggerRecorder' />\r
+ <!-- End of Log recorder-->\r
+ <!-- Start of journal-->\r
+ <!-- Description: Reference to the journal -->\r
+ <ref object='journal' />\r
+ <!-- End of journal-->\r
+ </chainer>\r
+ <!-- End of recorder-->\r
+\r
+ <!-- Start of repository-->\r
+ <!-- Description: Implementation of the repository. -->\r
+ <repository class='org.ow2.bonita.persistence.db.DbRepository'>\r
+ <arg><string value='runtime-session:core' /></arg>\r
+ </repository>\r
+ <!-- End of repository-->\r
+\r
+ <!-- Start of runtime-session:core-->\r
+ <!-- Description: Runtime session used in engine. -->\r
+ <runtime-db-session name='runtime-session:core' session='hibernate-session:core'/>\r
+ <!-- End of runtime-session:core-->\r
+\r
+ <!-- Start of security-->\r
+ <!-- Description: Service used to find the user logged in. -->\r
+ <security class='com.pentila.evalcomp.workflow.engine.auth.TransparentSecurityContext'/>\r
+ <!-- End of security-->\r
+\r
+ <!-- Start of timer_session-->\r
+ <!-- Description: Service which schedules timers. -->\r
+ <timer-session />\r
+ <!-- End of timer_session-->\r
+\r
+ <!-- Start of transaction-->\r
+ <!-- Description: DB transaction -->\r
+ <transaction />\r
+ <!-- End of transaction-->\r
+\r
+ </environment>\r
+\r
+ </environment-definition>\r