AnsweredAssumed Answered

commandContext with spring

Question asked by habib1 on Apr 11, 2014
Latest reply on May 18, 2016 by jbarrez
Hi,  how to configure activti-context to inject to use commandContext in my services , i try this but it dosen't work :

<blockcode>
<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
    <property name="processEngineConfiguration" ref="processEngineConfiguration" />
</bean>
   </blockcode>

<blockcode>
<bean id="activitiCommandContext" factory-bean="processEngine" factory-method="getCommandContextFactory" />
</blockcode>
<blockcode>
<bean id="Service" class="com.habib.project.ServiceImpl">
   <property name="commandContext" ref="activitiCommandContext" />
</bean>
</blockcode>

Outcomes