cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve attachments from Activiti Enterprise Trial and save them to Alfresco One Repository

akashdhruvc
Champ in-the-making
Champ in-the-making
Technical Goal: All uploaded attachments in Tasks of Activiti Enterprise Trial should be auto-saved to Alfresco One Repository

Method used to achieve target:
1. Retrieve task attachments/contents using REST URL in Java Service Task.
2. Save them into mapped network drive (based on Alfresco One URL - http://localhost:8090/alfresco/aos/) of Alfresco One.

Is there a better approach I might take to achieve our technical goal. Please help.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
(1) is not needed. You can inject the ContentService in your Service task (you do have to add your service task to the classpath and make it a Spring Bean, check the docs for that0>

However, if it's about Alfresco, you can also use the 'Publish to Alfresco' task. It has an option to store _all_ content from a process instance in Alfresco.