-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathcontext.xml
84 lines (70 loc) · 3.93 KB
/
context.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">
<ext:property-placeholder />
<bean id="dataSource" class="org.h2.jdbcx.JdbcDataSource">
<property name="URL" value="jdbc:h2:mem:camunda;DB_CLOSE_DELAY=-1" />
<property name="user" value="sa" />
<property name="password" value="" />
</bean>
<bean id="configurationFactory"
class="org.camunda.bpm.extension.osgi.blueprint.ConfigurationFactory">
<property name="dataSource" ref="dataSource" />
<property name="databaseSchemaUpdate" value="true" />
</bean>
<bean id="configuration" factory-ref="configurationFactory"
factory-method="getConfiguration">
</bean>
<bean id="blueprintELResolver"
class="org.camunda.bpm.extension.osgi.blueprint.BlueprintELResolver" />
<bean id="blueprintExpressionManager"
class="org.camunda.bpm.extension.osgi.blueprint.BlueprintExpressionManager">
<property name="blueprintELResolver" ref="blueprintELResolver" />
</bean>
<bean id="processEngineFactory"
class="org.camunda.bpm.extension.osgi.engine.ProcessEngineFactoryWithELResolver"
init-method="init" destroy-method="destroy">
<property name="processEngineConfiguration" ref="configuration" />
<property name="bundle" ref="blueprintBundle" />
<property name="expressionManager" ref="blueprintExpressionManager" />
</bean>
<bean id="processEngine" factory-ref="processEngineFactory"
factory-method="getObject" destroy-method="close" />
<!-- ############ Start BPM services ############ -->
<bean id="runtimeService" factory-ref="processEngine"
factory-method="getRuntimeService" />
<bean id="repositoryService" factory-ref="processEngine"
factory-method="getRepositoryService" />
<bean id="formService" factory-ref="processEngine" factory-method="getFormService" />
<bean id="taskService" factory-ref="processEngine" factory-method="getTaskService" />
<bean id="historyService" factory-ref="processEngine"
factory-method="getHistoryService" />
<bean id="identityService" factory-ref="processEngine"
factory-method="getIdentityService" />
<bean id="managementService" factory-ref="processEngine"
factory-method="getManagementService" />
<service ref="processEngine" interface="org.camunda.bpm.engine.ProcessEngine" />
<service ref="runtimeService" interface="org.camunda.bpm.engine.RuntimeService" />
<service ref="repositoryService" interface="org.camunda.bpm.engine.RepositoryService" />
<service ref="formService" interface="org.camunda.bpm.engine.FormService" />
<service ref="taskService" interface="org.camunda.bpm.engine.TaskService" />
<service ref="historyService" interface="org.camunda.bpm.engine.HistoryService" />
<service ref="identityService" interface="org.camunda.bpm.engine.IdentityService" />
<service ref="managementService" interface="org.camunda.bpm.engine.ManagementService" />
<!-- ############ End BPM services ############ -->
<!-- ### if you are using the BlueprintELResolver configure the bind / unbind methods -->
<reference-list id="delegateProviders" availability="optional"
interface="org.camunda.bpm.engine.delegate.JavaDelegate" activation="eager">
<reference-listener ref="blueprintELResolver"
bind-method="bindService" unbind-method="unbindService" />
</reference-list>
<reference-list id="taskListenerProviders" availability="optional"
interface="org.camunda.bpm.engine.delegate.TaskListener" activation="eager">
<reference-listener ref="blueprintELResolver" bind-method="bindTaskListenerService"
unbind-method="unbindTaskListenerService"/>
</reference-list>
<reference-list id="activityProviders" availability="optional"
interface="org.camunda.bpm.engine.impl.pvm.delegate.ActivityBehavior" activation="eager">
<reference-listener ref="blueprintELResolver" bind-method="bindActivityBehaviourService"
unbind-method="unbindActivityBehaviourService"/>
</reference-list>
</blueprint>