Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<spring:bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
<spring:property name="jdbcUrl" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" />
<spring:property name="jdbcDriver" value="org.h2.Driver" />
<spring:property name="jdbcUsername" value="sa" />
<spring:property name="jdbcPassword" value="" />
<spring:property name="databaseSchemaUpdate" value="true" />
<spring:property name="jobExecutorActivate" value="false" />
</spring:bean>
<spring:bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
<spring:property name="processEngineConfiguration" ref="processEngineConfiguration" />
</spring:bean>
<spring:bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
<spring:bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" />
<spring:bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />
<spring:bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment