ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ECOMP MSO |
| 4 | ================================================================================ |
| 5 | Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
| 6 | ================================================================================ |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | ============LICENSE_END========================================================= |
| 19 | --> |
| 20 | |
| 21 | <beans xmlns="http://www.springframework.org/schema/beans" |
| 22 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 23 | xmlns:activiti="http://www.activiti.org/schema/spring/components" |
| 24 | xsi:schemaLocation="http://www.springframework.org/schema/beans |
| 25 | http://www.springframework.org/schema/beans/spring-beans.xsd"> |
| 26 | |
| 27 | |
| 28 | <!-- |
| 29 | <bean id="dataSource" class="org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy"> |
| 30 | <property name="targetDataSource"> |
| 31 | <bean class="org.apache.commons.dbcp.BasicDataSource"> |
| 32 | <property name="driverClassName" value="org.h2.Driver" /> |
| 33 | <property name="url" value="jdbc:h2:mem:process-engine;MVCC=TRUE;TRACE_LEVEL_FILE=0" /> |
| 34 | <property name="username" value="sa" /> |
| 35 | <property name="password" value="" /> |
| 36 | </bean> |
| 37 | </property> |
| 38 | </bean> |
| 39 | --> |
| 40 | |
| 41 | <!-- Added for MSO: Use the datasource defined in the JBoss configuration --> |
| 42 | <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> |
| 43 | <property name="jndiName" value="java:jboss/datasources/ProcessEngine"/> |
| 44 | </bean> |
| 45 | |
| 46 | <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> |
| 47 | <property name="dataSource" ref="dataSource" /> |
| 48 | </bean> |
| 49 | |
| 50 | <bean id="processEngineConfiguration" class="org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration"> |
| 51 | <property name="processEngineName" value="default" /> |
| 52 | <property name="dataSource" ref="dataSource" /> |
| 53 | <property name="transactionManager" ref="transactionManager" /> |
| 54 | <property name="databaseSchemaUpdate" value="true" /> |
| 55 | <property name="jobExecutorActivate" value="false" /> |
| 56 | <property name="deploymentResources" value="classpath*:bpmn/*.bpmn" /> |
| 57 | <property name="authorizationEnabled" value="true" /> |
| 58 | <property name="failedJobCommandFactory"> |
| 59 | <bean class="org.camunda.bpm.engine.impl.jobexecutor.FoxFailedJobCommandFactory" /> |
| 60 | </property> |
| 61 | <property name="idGenerator"> |
| 62 | <bean class="org.camunda.bpm.engine.impl.persistence.StrongUuidGenerator" /> |
| 63 | </property> |
| 64 | <property name="processEnginePlugins"> |
| 65 | <list> |
| 66 | <!--<ref bean="ldapIdentityProviderPlugin" />--> |
| 67 | <!--<ref bean="administratorAuthorizationPlugin" />--> |
| 68 | <bean id="spinPlugin" class="org.camunda.spin.plugin.impl.SpinProcessEnginePlugin" /> |
| 69 | <bean id="connectPlugin" class="org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin" /> |
| 70 | </list> |
| 71 | </property> |
| 72 | <!-- Added for MSO: Set the history level to full --> |
| 73 | <property name="historyLevel" value="HISTORY_LEVEL_FULL" /> |
| 74 | </bean> |
| 75 | |
| 76 | <!-- ldap identity provider (deactivated, uncomment plugin in processEngineConfiguration to activate) --> |
| 77 | <bean id="ldapIdentityProviderPlugin" class="org.camunda.bpm.identity.impl.ldap.plugin.LdapIdentityProviderPlugin"> |
| 78 | <property name="serverUrl" value="ldap://localhost:3433/" /> |
| 79 | <property name="managerDn" value="uid=daniel,ou=office-berlin,o=camunda,c=org" /> |
| 80 | <property name="managerPassword" value="daniel" /> |
| 81 | <property name="baseDn" value="o=camunda,c=org" /> |
| 82 | |
| 83 | <property name="userSearchBase" value="" /> |
| 84 | <property name="userSearchFilter" value="(objectclass=person)" /> |
| 85 | <property name="userIdAttribute" value="uid" /> |
| 86 | <property name="userFirstnameAttribute" value="cn" /> |
| 87 | <property name="userLastnameAttribute" value="sn" /> |
| 88 | <property name="userEmailAttribute" value="mail" /> |
| 89 | <property name="userPasswordAttribute" value="userpassword" /> |
| 90 | |
| 91 | <property name="groupSearchBase" value="" /> |
| 92 | <property name="groupSearchFilter" value="(objectclass=groupOfNames)" /> |
| 93 | <property name="groupIdAttribute" value="ou" /> |
| 94 | <property name="groupNameAttribute" value="cn" /> |
| 95 | <property name="groupMemberAttribute" value="member" /> |
| 96 | </bean> |
| 97 | |
| 98 | <bean id="administratorAuthorizationPlugin" class="org.camunda.bpm.engine.impl.plugin.AdministratorAuthorizationPlugin"> |
| 99 | <property name="administratorUserName" value="admin" /> |
| 100 | </bean> |
| 101 | |
| 102 | <bean id="processEngine" class="org.camunda.bpm.engine.spring.ProcessEngineFactoryBean"> |
| 103 | <property name="processEngineConfiguration" ref="processEngineConfiguration" /> |
| 104 | </bean> |
| 105 | |
| 106 | <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" /> |
| 107 | <bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" /> |
| 108 | <bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" /> |
| 109 | <bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" /> |
| 110 | <bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" /> |
| 111 | </beans> |