Hi,
I am using activiti in spring web application. Now, i am facing an issue. if i inject spring service class in activiti listener then it showing an error at runtime.
My java listener code is
@Component
public class MyEventListener implements TaskListener {
@Autowired
ILocalConveyanceService localConveyanceService;
@Override
public void notify(DelegateTask delegateTask) {
System.out.println("Task listener called");
System.out.println("delegateTask: "+delegateTask.getProcessInstanceId());
List<TblLocalConveyance> all = localConveyanceService.getAll();
for (TblLocalConveyance tblLocalConveyance : all) {
System.out.println("LCNo: "+tblLocalConveyance.getLcNo());
}
}
}
Please help me out this.
How are you configuring/registering that listener into Activiti?
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.