cancel
Showing results for 
Search instead for 
Did you mean: 

Create new file during workflow

carande
Champ in-the-making
Champ in-the-making
Hello,

<strong> Does anyone have advice for how to create a new file within a workflow? </strong>

I have implemented a custom content model, and have a workflow that allows a user to edit some of these custom property values for an attached package item.

I would like to add a step to this workflow that produces an output text file.  This file is generated programmatically based on the pacakge item's properties (for example, text displaying the document's author and date).

I understand how this could be done as a groovy script step, and write the file to the alfresco server's filesystem, but I would like instead for the result to be a new file created within alfresco, ideally as a new package item attached to the current workflow. 
2 REPLIES 2

carande
Champ in-the-making
Champ in-the-making
I've tried using the metadata-writer add-on: <a>https://addons.alfresco.com/addons/metadata-writer</a>

but have been unable to successfully build it using maven, so I'm currently looking for an alternate solution.

krups
Champ in-the-making
Champ in-the-making
you can use task listener's event and can use java/javascript to create text document.