1 <environment-definition>
\r
3 <environment-factory>
\r
4 <!-- Start of command-service-->
\r
5 <!-- Description: Service which executes commands -->
\r
7 <retry-interceptor />
\r
8 <environment-interceptor />
\r
9 <standard-transaction-interceptor />
\r
11 <!-- End of command-service-->
\r
13 <!-- Start of finished-instance-handler-->
\r
14 <!-- Description: List of services called when an instance is finished. -->
\r
15 <chainer name='finished-instance-handler'>
\r
16 <!-- Start of org.ow2.bonita.services.handlers.impl.DeleteFinishedInstanceHandler-->
\r
17 <!-- Description: -->
\r
18 <object class='org.ow2.bonita.services.handlers.impl.DeleteFinishedInstanceHandler' />
\r
19 <!-- End of org.ow2.bonita.services.handlers.impl.DeleteFinishedInstanceHandler-->
\r
20 <!-- Start of org.ow2.bonita.services.handlers.impl.ArchiveFinishedInstanceHandler-->
\r
21 <!-- Description: -->
\r
22 <object class='org.ow2.bonita.services.handlers.impl.ArchiveFinishedInstanceHandler' />
\r
23 <!-- End of org.ow2.bonita.services.handlers.impl.ArchiveFinishedInstanceHandler-->
\r
25 <!-- End of finished-instance-handler-->
\r
27 <!-- Start of hibernate-configuration:core-->
\r
28 <!-- Description: Configuration of the Hibernate session factory used by engine. -->
\r
29 <hibernate-configuration name='hibernate-configuration:core' >
\r
30 <properties resource='hibernate-Bonita.properties' />
\r
31 <mappings resource='bonita.runtime.mappings.hbm.xml' />
\r
32 <mappings resource='bonita.querier.mappings.hbm.xml' />
\r
33 <cache-configuration resource='bonita.querier.cache.xml' usage='read-write' />
\r
34 </hibernate-configuration>
\r
35 <!-- End of hibernate-configuration:core-->
\r
37 <!-- Start of hibernate-configuration:history-->
\r
38 <!-- Description: Configuration of the Hibernate session factory used by db history. -->
\r
39 <hibernate-configuration name='hibernate-configuration:history' >
\r
40 <properties resource='hibernate-Bonita-history.properties' />
\r
41 <mappings resource='bonita.history.mappings.hbm.xml' />
\r
42 <mappings resource='bonita.querier.mappings.hbm.xml' />
\r
43 <cache-configuration resource='bonita.querier.cache.xml' usage='read-write' />
\r
44 </hibernate-configuration>
\r
45 <!-- End of hibernate-configuration:history-->
\r
47 <!-- Start of hibernate-configuration:journal-->
\r
48 <!-- Description: Configuration of the Hibernate session factory used by journal (in a separate db). -->
\r
50 <hibernate-configuration name='hibernate-configuration:journal' >
\r
51 <properties resource='hibernate-journal.properties' />
\r
52 <mappings resource='bonita.history.mappings.hbm.xml' />
\r
53 <mappings resource='bonita.querier.mappings.hbm.xml' />
\r
54 <cache-configuration resource='bonita.querier.cache.xml' usage='read-write' />
\r
55 </hibernate-configuration>
\r
57 <!-- End of hibernate-configuration:journal-->
\r
59 <!-- Start of hibernate-session-factory:core-->
\r
60 <!-- Description: Hibernate session factory used by engine. -->
\r
61 <hibernate-session-factory name='hibernate-session-factory:core' configuration='hibernate-configuration:core' init='eager'/>
\r
62 <!-- End of hibernate-session-factory:core-->
\r
64 <!-- Start of hibernate-session-factory:history-->
\r
65 <!-- Description: Hibernate session factory used by db history. -->
\r
66 <hibernate-session-factory name='hibernate-session-factory:history' configuration='hibernate-configuration:history' init='eager'/>
\r
67 <!-- End of hibernate-session-factory:history-->
\r
69 <!-- Start of hibernate-session-factory:journal-->
\r
70 <!-- Description: Hibernate session factory used by journal (in a separate db). -->
\r
72 <hibernate-session-factory name='hibernate-session-factory:journal' configuration='hibernate-configuration:journal' init='eager'/>
\r
74 <!-- End of hibernate-session-factory:journal-->
\r
76 <!-- Start of hook-executor-->
\r
77 <!-- Description: Implementation of the HookExecutor interface which will be used to execute hooks in the engine. -->
\r
78 <object name='hook-executor' class='org.ow2.bonita.definition.activity.HookExecutorImpl' />
\r
79 <!-- End of hook-executor-->
\r
81 <!-- Start of job-executor-->
\r
82 <!-- Description: Service which executes jobs -->
\r
83 <job-executor threads='10' auto-start='true' />
\r
84 <!-- End of job-executor-->
\r
86 <!-- Start of type-resolver-->
\r
87 <!-- Description: Mapping from java variable to database type -->
\r
88 <variable-types resource='bonita.type.resolver.xml' />
\r
89 <!-- End of type-resolver-->
\r
91 <!-- Start of undeployed-package-handler-->
\r
92 <!-- Description: List of services called when a package is undeployed. -->
\r
93 <chainer name='undeployed-package-handler'>
\r
94 <!-- Start of org.ow2.bonita.services.handlers.impl.ArchiveUndeployedPackageHandler-->
\r
95 <!-- Description: -->
\r
96 <object class='org.ow2.bonita.services.handlers.impl.ArchiveUndeployedPackageHandler' />
\r
97 <!-- End of org.ow2.bonita.services.handlers.impl.ArchiveUndeployedPackageHandler-->
\r
99 <!-- End of undeployed-package-handler-->
\r
101 <!-- Start of uuid-generator-->
\r
102 <!-- Description: Service which generates UUIDs for runtime objects. -->
\r
103 <object name='uuid-generator' class='org.ow2.bonita.services.impl.DefaultUUIDGenerator' />
\r
104 <!-- End of uuid-generator-->
\r
106 </environment-factory>
\r
109 <!-- Start of Db history-->
\r
110 <!-- Description: DB Implementation of the history. This implementation is full conformant with the spec (but not optimized). -->
\r
112 <history name='history' class='org.ow2.bonita.persistence.db.DbHistory'/>
\r
114 <!-- End of Db history-->
\r
116 <!-- Start of Optimized DB history-->
\r
117 <!-- 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
118 <history name='history' class='org.ow2.bonita.persistence.db.OptimizedDbHistory'>
\r
119 <arg><string value='querier-session:history' /></arg>
\r
121 <!-- End of Optimized DB history-->
\r
123 <!-- Start of XML history-->
\r
124 <!-- Description: XML Implementation of the history. -->
\r
126 <history name='history' class='org.ow2.bonita.persistence.xml.XMLHistory'/>
\r
128 <!-- End of XML history-->
\r
130 <!-- Start of archiver-->
\r
131 <!-- Description: List of archivers. -->
\r
132 <chainer name='archiver'>
\r
133 <!-- Start of Log archiver-->
\r
134 <!-- Description: Archiver which writes archived data to logs. -->
\r
135 <archiver class='org.ow2.bonita.persistence.log.LoggerArchiver' />
\r
136 <!-- End of Log archiver-->
\r
137 <!-- Start of history-->
\r
138 <!-- Description: Reference to the history -->
\r
139 <ref object='history' />
\r
140 <!-- End of history-->
\r
142 <!-- End of archiver-->
\r
144 <!-- Start of hibernate-session:core-->
\r
145 <!-- Description: Hibernate session used by engine. -->
\r
146 <hibernate-session name='hibernate-session:core' factory='hibernate-session-factory:core' />
\r
147 <!-- End of hibernate-session:core-->
\r
149 <!-- Start of hibernate-session:history-->
\r
150 <!-- Description: Hibernate session used by db history. -->
\r
151 <hibernate-session name='hibernate-session:history' factory='hibernate-session-factory:history' />
\r
152 <!-- End of hibernate-session:history-->
\r
154 <!-- Start of hibernate-session:journal-->
\r
155 <!-- Description: Hibernate session used by journal (in a separate db). -->
\r
157 <hibernate-session name='hibernate-session:journal' factory='hibernate-session-factory:journal' />
\r
159 <!-- End of hibernate-session:journal-->
\r
161 <!-- Start of job-session-->
\r
162 <!-- Description: Service which stores jobs in the database. -->
\r
163 <job-db-session session='hibernate-session:core' />
\r
164 <!-- End of job-session-->
\r
166 <!-- Start of journal-->
\r
167 <!-- Description: Implementation of the journal. -->
\r
168 <journal name='journal' class='org.ow2.bonita.persistence.db.DbJournal'>
\r
169 <arg><string value='querier-session:core' /></arg>
\r
170 <!-- replace previous line by this line to use a separate journal -->
\r
171 <!-- <arg><string value='querier-session:journal' /></arg> -->
\r
173 <!-- End of journal-->
\r
175 <!-- Start of message_session-->
\r
176 <!-- Description: Service which schedules messages. -->
\r
177 <message-session />
\r
178 <!-- End of message_session-->
\r
180 <!-- Start of querier-session:core-->
\r
181 <!-- Description: Querier used in engine. -->
\r
182 <querier-db-session name='querier-session:core' session='hibernate-session:core'/>
\r
183 <!-- End of querier-session:core-->
\r
185 <!-- Start of querier-session:history-->
\r
186 <!-- Description: Querier used in db history. -->
\r
187 <querier-db-session name='querier-session:history' session='hibernate-session:history'/>
\r
188 <!-- End of querier-session:history-->
\r
190 <!-- Start of querier-session:journal-->
\r
191 <!-- Description: Querier used in journal (in a separate db). -->
\r
193 <querier-db-session name='querier-session:journal' session='hibernate-session:journal'/>
\r
195 <!-- End of querier-session:journal-->
\r
197 <!-- Start of queryList-->
\r
198 <!-- Description: List of Queriers to use. -->
\r
199 <queryApi name='queryList'>
\r
200 <!-- Start of journal-->
\r
201 <!-- Description: Reference to the journal -->
\r
202 <ref object='journal' />
\r
203 <!-- End of journal-->
\r
204 <!-- Start of history-->
\r
205 <!-- Description: Reference to the history -->
\r
206 <ref object='history' />
\r
207 <!-- End of history-->
\r
209 <!-- End of queryList-->
\r
211 <!-- Start of recorder-->
\r
212 <!-- Description: List of recorders. -->
\r
213 <chainer name='recorder'>
\r
214 <!-- Start of Log recorder-->
\r
215 <!-- Description: Recorder which writes recorded data to logs. -->
\r
216 <recorder class='org.ow2.bonita.persistence.log.LoggerRecorder' />
\r
217 <!-- End of Log recorder-->
\r
218 <!-- Start of journal-->
\r
219 <!-- Description: Reference to the journal -->
\r
220 <ref object='journal' />
\r
221 <!-- End of journal-->
\r
223 <!-- End of recorder-->
\r
225 <!-- Start of repository-->
\r
226 <!-- Description: Implementation of the repository. -->
\r
227 <repository class='org.ow2.bonita.persistence.db.DbRepository'>
\r
228 <arg><string value='runtime-session:core' /></arg>
\r
230 <!-- End of repository-->
\r
232 <!-- Start of runtime-session:core-->
\r
233 <!-- Description: Runtime session used in engine. -->
\r
234 <runtime-db-session name='runtime-session:core' session='hibernate-session:core'/>
\r
235 <!-- End of runtime-session:core-->
\r
237 <!-- Start of security-->
\r
238 <!-- Description: Service used to find the user logged in. -->
\r
239 <security class='com.pentila.evalcomp.workflow.engine.auth.TransparentSecurityContext'/>
\r
240 <!-- End of security-->
\r
242 <!-- Start of timer_session-->
\r
243 <!-- Description: Service which schedules timers. -->
\r
245 <!-- End of timer_session-->
\r
247 <!-- Start of transaction-->
\r
248 <!-- Description: DB transaction -->
\r
250 <!-- End of transaction-->
\r
254 </environment-definition>
\r