12-09-2013 09:47 AM
<!– Begin Activiti Setup –>
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="org.h2.Driver" />
<property name="url" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" />
<property name="username" value="sa" />
<property name="password" value="sa" />
</bean>
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
</bean>
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="false" />
<property name="deploymentResources">
<list>
<!– <value>classpath:order-management.bpmn </value> –>
<value>classpath:order-management.bpmn
</value>
</list>
</property>
</bean>
<bean id="processEngine" class="org.activiti.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" />
<!– End Activiti Setup –>
<!– Business Process Implementation –>
<bean id="businessProcessService"
class="com.efx.pet.service.business_process.ActivitiBusinessProcessService">
<property name="activitiProcessEngine" ref="processEngine" />
</bean>
<!– <tx:annotation-driven transaction-manager="transactionManager"/> –>
<bean id="orderManagementService"
class="com.efx.pet.service.ordermanagement.impl.OrderManagementServiceImpl"
init-method="onInit" />
<bean id="orderManagementDelegate"
class="com.efx.pet.service.business_process.delegate.OrderManagementDelegate" />
12-10-2013 07:47 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.