| <!-- |
| ============LICENSE_START======================================================= |
| ECOMP MSO |
| ================================================================================ |
| Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
| ================================================================================ |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| ============LICENSE_END========================================================= |
| --> |
| |
| <beans xmlns="http://www.springframework.org/schema/beans" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns:activiti="http://www.activiti.org/schema/spring/components" |
| xsi:schemaLocation="http://www.springframework.org/schema/beans |
| http://www.springframework.org/schema/beans/spring-beans.xsd"> |
| |
| |
| <!-- |
| <bean id="dataSource" class="org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy"> |
| <property name="targetDataSource"> |
| <bean class="org.apache.commons.dbcp.BasicDataSource"> |
| <property name="driverClassName" value="org.h2.Driver" /> |
| <property name="url" value="jdbc:h2:mem:process-engine;MVCC=TRUE;TRACE_LEVEL_FILE=0" /> |
| <property name="username" value="sa" /> |
| <property name="password" value="" /> |
| </bean> |
| </property> |
| </bean> |
| --> |
| |
| <!-- Added for MSO: Use the datasource defined in the JBoss configuration --> |
| <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> |
| <property name="jndiName" value="java:jboss/datasources/ProcessEngine"/> |
| </bean> |
| |
| <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> |
| <property name="dataSource" ref="dataSource" /> |
| </bean> |
| |
| <bean id="processEngineConfiguration" class="org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration"> |
| <property name="processEngineName" value="default" /> |
| <property name="dataSource" ref="dataSource" /> |
| <property name="transactionManager" ref="transactionManager" /> |
| <property name="databaseSchemaUpdate" value="true" /> |
| <property name="jobExecutorActivate" value="false" /> |
| <property name="deploymentResources" value="classpath*:bpmn/*.bpmn" /> |
| <property name="authorizationEnabled" value="true" /> |
| <property name="idGenerator"> |
| <bean class="org.camunda.bpm.engine.impl.persistence.StrongUuidGenerator" /> |
| </property> |
| <property name="processEnginePlugins"> |
| <list> |
| <!--<ref bean="ldapIdentityProviderPlugin" />--> |
| <!--<ref bean="administratorAuthorizationPlugin" />--> |
| <bean id="spinPlugin" class="org.camunda.spin.plugin.impl.SpinProcessEnginePlugin" /> |
| <bean id="connectPlugin" class="org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin" /> |
| </list> |
| </property> |
| <!-- Added for MSO: Set the history level to full --> |
| <property name="historyLevel" value="HISTORY_LEVEL_FULL" /> |
| </bean> |
| |
| <!-- ldap identity provider (deactivated, uncomment plugin in processEngineConfiguration to activate) --> |
| <bean id="ldapIdentityProviderPlugin" class="org.camunda.bpm.identity.impl.ldap.plugin.LdapIdentityProviderPlugin"> |
| <property name="serverUrl" value="ldap://localhost:3433/" /> |
| <property name="managerDn" value="uid=daniel,ou=office-berlin,o=camunda,c=org" /> |
| <property name="managerPassword" value="daniel" /> |
| <property name="baseDn" value="o=camunda,c=org" /> |
| |
| <property name="userSearchBase" value="" /> |
| <property name="userSearchFilter" value="(objectclass=person)" /> |
| <property name="userIdAttribute" value="uid" /> |
| <property name="userFirstnameAttribute" value="cn" /> |
| <property name="userLastnameAttribute" value="sn" /> |
| <property name="userEmailAttribute" value="mail" /> |
| <property name="userPasswordAttribute" value="userpassword" /> |
| |
| <property name="groupSearchBase" value="" /> |
| <property name="groupSearchFilter" value="(objectclass=groupOfNames)" /> |
| <property name="groupIdAttribute" value="ou" /> |
| <property name="groupNameAttribute" value="cn" /> |
| <property name="groupMemberAttribute" value="member" /> |
| </bean> |
| |
| <bean id="administratorAuthorizationPlugin" class="org.camunda.bpm.engine.impl.plugin.AdministratorAuthorizationPlugin"> |
| <property name="administratorUserName" value="admin" /> |
| </bean> |
| |
| <bean id="processEngine" class="org.camunda.bpm.engine.spring.ProcessEngineFactoryBean"> |
| <property name="processEngineConfiguration" ref="processEngineConfiguration" /> |
| </bean> |
| |
| <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" /> |
| <bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" /> |
| <bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" /> |
| <bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" /> |
| <bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" /> |
| </beans> |