spring注入processengine 怎么在java中拿到
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring注入processengine 怎么在java中拿到相关的知识,希望对你有一定的参考价值。
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"p:processEngineName="spring"
p:dataSource-ref="dataSource"
p:transactionManager-ref="transactionManager"
p:databaseSchemaUpdate="true"
p:jobExecutorActivate="false"
p:dbIdentityUsed="false"
p:activityFontName="宋体"
p:labelFontName="宋体"/>
<bean id="processEngineFactory" class="org.activiti.spring.ProcessEngineFactoryBean"
p:processEngineConfiguration-ref="processEngineConfiguration"/>
<bean id="repositoryService" factory-bean="processEngineFactory" factory-method="getRepositoryService" />
<bean id="runtimeService" factory-bean="processEngineFactory" factory-method="getRuntimeService" />
<bean id="formService" factory-bean="processEngineFactory" factory-method="getFormService" />
<bean id="identityService" factory-bean="processEngineFactory" factory-method="getIdentityService" />
<bean id="taskService" factory-bean="processEngineFactory" factory-method="getTaskService" />
<bean id="historyService" factory-bean="processEngineFactory" factory-method="getHistoryService" />
<bean id="managementService" factory-bean="processEngineFactory" factory-method="getManagementService" />
这样注入之后 用 @Autowired private RepositoryService repositoryService 取到
以上是关于spring注入processengine 怎么在java中拿到的主要内容,如果未能解决你的问题,请参考以下文章
2017.2.21 activiti实战--第七章--Activiti与容器集成