05-22-2012 03:55 AM
@Component
public class ListenerK implements TaskListener{
@Resource SysUserService sysUserService;
public void notify(DelegateTask delegateTask) {
System.out.println(sysUserService);
}
}
but the service is null.why?
05-22-2012 04:15 AM
<bean id="jServ" class="demo.JServ" />
<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="beans">
<map>
<entry key="jServ" value-ref="jServ" />
</map>
</property>
</bean>
05-22-2012 08:18 AM
05-22-2012 08:39 PM
<userTask id="usertask1" name="User Task" activiti:assignee="3">
<extensionElements>
<activiti:taskListener event="create" class="demo.ListenerK"></activiti:taskListener>
</extensionElements>
</userTask>
05-23-2012 03:46 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.