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 ?
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
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