Publish to Alfresco programmatically

Showing results for 
Search instead for 
Did you mean: 
Active Member II

Publish to Alfresco programmatically


I am using Activiti 1.9.03 and Alfresco 5.2.4 enterprise versions. I have a requirement where I have to maintain the version of the generated report document and also uploaded document (if user edits it). Right now After each user tasks, I am adding two Publish to Alfresco tasks. This is making the workflow diagram unreadable. 

I want to know the following things.

  1. Is there any other way to handle versioning in Activiti instead of pushing the content to the Alfresco?
  2. How can I upload the content programatically using JAVA or Javascript task in a listener, so that I don't have to keep the Publish to Alfresco tasks in the workflow definition. OR
  3. Is there any way to hide the Publish to Alfresco tasks on the workflow diagram?

Any help will be appreciated... 

Thank you


1 Reply
Alfresco Employee

Re: Publish to Alfresco programmatically

Hi @signjoy 

If you're using Enterprise, I would suggest contacting support through our portal (


Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!