1 <environment-definition>
4 <!-- Description: Implementation of the BlobStrategy interface which will be used to store Blobs. -->
5 <object name='blob-strategy' class='org.ow2.bonita.type.lob.BlobStrategyBlob' />
7 <!-- Description: Implementation of the Classdata loader Service. -->
8 <classdata-loader name='classdata-loader' class='org.ow2.bonita.runtime.ClassDataLoader'/>
10 <!-- Description: Implementation of the LobCreator interface which will be used to store Clobs. -->
11 <object name='clob-strategy' class='org.ow2.bonita.type.lob.ClobStrategyChopped' />
13 <!-- Description: Service which executes commands -->
14 <command-service name='command-service'>
15 <retry-interceptor retries='5' delay='50' delay-factor='10'/>
16 <environment-interceptor />
17 <standard-transaction-interceptor />
20 <!-- Description: Implementation of the documentation manager. -->
21 <documentation-manager name='documentation-manager' class='org.ow2.bonita.services.impl.CMISDocumentManager'>
22 <arg><string value='ATOM' /></arg>
23 <arg><string value='http://localhost:8080/xcmis/rest/cmisatom' /></arg>
24 <arg><string value='default' /></arg>
26 <object class='org.ow2.bonita.services.impl.XCmisUserProvider'>
28 <arg><string value='root'/></arg>
29 <arg><string value='exo'/></arg>
33 </documentation-manager>
35 <!-- Description: Specify the domain of this environment -->
36 <domain id='default' />
38 <!-- Description: Service which executes events -->
39 <event-executor idle-min='50' idle='10000' threads='3' lock='120000' auto-start='true' command-service='command-service'/>
41 <!-- Description: List of services called when an instance is finished. -->
42 <chainer name='finished-instance-handler'>
44 <object class='org.ow2.bonita.services.handlers.impl.ArchiveFinishedInstanceHandler' />
47 <!-- Description: Configuration of the Hibernate session factory used by Bonita core. -->
48 <hibernate-configuration name='hibernate-configuration:core' >
49 <properties file='${BONITA_HOME}/server/default/conf/bonita-journal.properties' />
50 <mappings resource='bonita.mappings.hbm.xml' />
51 <cache-configuration resource='bonita.core.cache.xml' usage='read-write' />
52 </hibernate-configuration>
54 <!-- Description: Configuration of the Hibernate session factory used by Bonita history. -->
55 <hibernate-configuration name='hibernate-configuration:history' >
56 <properties file='${BONITA_HOME}/server/default/conf/bonita-history.properties' />
57 <mappings resource='bonita.mappings.hbm.xml' />
58 <cache-configuration resource='bonita.history.cache.xml' usage='nonstrict-read-write' />
59 </hibernate-configuration>
61 <!-- Description: Hibernate session factory used by hibernate session factory for Bonita core.. -->
62 <hibernate-session-factory name='hibernate-session-factory:core' configuration='hibernate-configuration:core' init='eager'/>
64 <!-- Description: Hibernate session factory used by hibernate session factory for Bonita history.. -->
65 <hibernate-session-factory name='hibernate-session-factory:history' configuration='hibernate-configuration:history' init='eager'/>
67 <!-- Description: Implementation of the large data repository. -->
68 <large-data-repository name='large-data-repository' class='org.ow2.bonita.services.impl.FileLargeDataRepository'>
69 <arg><string value='${BONITA_HOME}/server/default/work' /></arg>
70 </large-data-repository>
72 <!-- Description: Implementation of the LobCreator interface which will be used to create SQL Blobs, Clobs. -->
73 <object name='lob-creator' class='org.ow2.bonita.services.impl.HibernateLobCreator' />
75 <!-- Description: Mapping from java variable to database type -->
76 <variable-types resource='bonita.type.resolver.xml' />
78 <!-- Description: Implementation of the UUID Service. -->
79 <uuid-service name='uuid-service' class='org.ow2.bonita.services.impl.DbUUIDService'/>
81 <!-- Description: Properties of variables management. -->
82 <variables store-history='true'/>
84 </environment-factory>
87 <!-- Description: DB Implementation of the history. This implementation is full conformant with the spec (but not optimized). -->
89 <history name='history' class='org.ow2.bonita.services.impl.DbHistory'/>
92 <!-- 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...) -->
93 <history name='history' class='org.ow2.bonita.services.impl.OptimizedDbHistory'>
94 <arg><string value='bonita-session:history' /></arg>
97 <!-- Description: List of archivers. -->
98 <chainer name='archiver'>
99 <!-- Description: Archiver which writes archived data to logs. -->
101 <archiver class='org.ow2.bonita.services.impl.LoggerArchiver' />
103 <!-- Description: Reference to the history -->
104 <ref object='history' />
107 <!-- Description: Implementation of the authentication service. -->
109 <authentication-service name='authentication-service' class='org.ow2.bonita.services.impl.DbAuthentication'>
110 <arg><string value='bonita-session:core' /></arg>
111 </authentication-service>
113 <!-- Description: Querier used in hibernate session name for Bonita core.. -->
114 <db-session name='bonita-session:core' session='hibernate-session:core'/>
116 <!-- Description: Querier used in hibernate session name for Bonita history.. -->
117 <db-session name='bonita-session:history' session='hibernate-session:history'/>
119 <!-- Description: Implementation of the Event Service. -->
120 <event-service name='event-service' class='org.ow2.bonita.services.impl.DbThreadEventService'>
121 <arg><string value='bonita-session:core' /></arg>
124 <!-- Description: Hibernate session used by hibernate session for Bonita core.. -->
125 <hibernate-session name='hibernate-session:core' factory='hibernate-session-factory:core' />
127 <!-- Description: Hibernate session used by hibernate session for Bonita history.. -->
128 <hibernate-session name='hibernate-session:history' factory='hibernate-session-factory:history' />
130 <!-- Description: List of Queriers to use. -->
131 <queryApi name='historyQueryList'>
132 <!-- Description: Reference to the history -->
133 <ref object='history' />
136 <!-- Description: Implementation of the identity service. -->
137 <identity-service name='identity-service' class='org.ow2.bonita.services.impl.DbIdentity'>
138 <arg><string value='bonita-session:core' /></arg>
141 <!-- Description: Implementation of the journal. -->
142 <journal name='journal' class='org.ow2.bonita.services.impl.DbJournal'>
143 <arg><string value='bonita-session:core' /></arg>
146 <!-- Description: List of Queriers to use. -->
147 <queryApi name='journalQueryList'>
148 <!-- Description: Reference to the journal -->
149 <ref object='journal' />
152 <!-- Description: Implementation of the privilege service. -->
153 <privilege-service name='privilege-service' class='org.ow2.bonita.services.impl.DbPrivilegeService'>
154 <arg><string value='bonita-session:core' /></arg>
157 <!-- Description: List of Queriers to use. -->
158 <queryApi name='queryList'>
159 <!-- Description: Reference to the journal -->
160 <ref object='journal' />
161 <!-- Description: Reference to the history -->
162 <ref object='history' />
165 <!-- Description: List of recorders. -->
166 <chainer name='recorder'>
167 <!-- Description: Recorder which writes recorded data to logs. -->
169 <recorder class='org.ow2.bonita.services.impl.LoggerRecorder' />
171 <!-- Description: Reference to the journal -->
172 <ref object='journal' />
175 <!-- Description: Db Transaction. -->
176 <object name='transaction' class='org.ow2.bonita.runtime.tx.StandardTransaction' />
180 <!-- Start of security-->
181 <!-- Description: Service used to find the user logged in. -->
182 <security class='com.pentila.evalcomp.workflow.engine.auth.TransparentSecurityContext'/>
183 <!-- End of security-->
189 <!-- Description: Implementation of the Web Service. -->
190 <web-service name='web-service' class='org.ow2.bonita.services.impl.DbWebService'>
191 <arg><string value='bonita-session:core' /></arg>
194 <!-- Description: Implementation of the web token management service. -->
195 <web-token-service name='web-token-service' class='org.ow2.bonita.services.impl.DbWebTokenManagementService'>
196 <arg><string value='bonita-session:core' /></arg>
201 </environment-definition>