cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete the PDF version of the file automatically?

mkopaczewski
Champ in-the-making
Champ in-the-making
Hello
I am using Alfresco community 2.1

I created simple workflow. Docs are transferred from draft to approved and PDF are created automatically, how to delete those PDFs if the document is removed from approved files to drafts ?

Thanks for help

Michal
3 REPLIES 3

mikef
Champ in-the-making
Champ in-the-making
There is no standard action to do this. However, you can write a Javascript action that is triggered by an outbound rule on the 'approved' space. This script would delete the PDF associated with the document being moved. For more information on writing scripts see: http://wiki.alfresco.com/wiki/JavaScript_API

mkopaczewski
Champ in-the-making
Champ in-the-making
I was thinking that it was custom functionality.
Does any one have little script somewhere in the notes.
I do not have too much knowledge about Javascript so some similar examples would be helpful

Thanks in advance

mkopaczewski
Champ in-the-making
Champ in-the-making
And? No one there to help???? please