Create new file during workflow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2015 05:13 PM
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.
<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.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2015 05:31 PM
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.
but have been unable to successfully build it using maven, so I'm currently looking for an alternate solution.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2015 10:47 PM
you can use task listener's event and can use java/javascript to create text document.
