cancel
Showing results for 
Search instead for 
Did you mean: 

How to get to the EngineServices from a service task

srobinson
Champ in-the-making
Champ in-the-making
I am currently using Alfresco 4.0.e which has Activiti 5.7 deployed with it.  I have a need within a service task to get access to the TaskService to query user tasks in the existing process instance.  I see how to do it in Activiti 5.11 (its quite simple), but in Activiti 5.7 the same methods are not present in the DelegateExecution interface that is passed to the service class.  Any assistance on this is greatly appreciated.

Also, as a side note, how difficult is it to upgrade the Activiti engine in Alfresco?  Are there any whitepapers or wikis that I can take a look at?

Thanks,

- Shannon
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi Shannon,

ProcessEngines.getDefaultProcessEngine() should give you the Activiti Engine from which you can get the TaskService interface.
In Alfresco Community HEAD we already upgraded to Activiti 5.11 so it's not too difficult.
Are you using Alfresco Enterprise or Community? If you are using Community it's probably easiest to upgrade to the latest version.
If you are using Enterprise it's probably wise to stick with 5.7, also from a support standpoint.

Best regards,

srobinson
Champ in-the-making
Champ in-the-making
Thanks for the quick reply!  That was what I needed.  We are using Alfresco Community.  We have a production deployment already with Alfresco Community 4.0.e and this is a new project implementation that was going to expand the production deployment.

I am really enjoying working with Activiti and Alfresco.  Keep up the great work!

- Shannon