I am using activiti 6.
I want to configure custom bean which will be used in tasklistener.
Where I can register ?
Other issue is how can I get member os group in TaskListner?
Autowired service is not working in activiti.
public class CreateTask implements TaskListener { }
If you are using the attribute activiti:class, it doesn't resolve the wiring of Spring beans.
In order to enable the wiring for your Spring beans, you have to declare it using the attribute activiti:delegateExpression setting its own Spring Bean Id such as the following:
<serviceTask id="thisIsMyServiceTaskId"
name="Service Task that needs Autowiring" activiti:delegateExpression="${myServiceTaskSpringBeanId}"/>
You can find a complete example in the following tutorial:
Hope this helps
I am using activiti community version,not enterprise.
What ever you have suggested that is applicable to enterprise version only and tasklistner is on user task.
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.