Generate Document Task - Create new file each run instead of overwriting

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

Generate Document Task - Create new file each run instead of overwriting

Dear Alfresco Community,

I am using the Publish to Alfresco Task in Alfresco Process Services 1.11 Trial Version in combination with the Alfresco Content Services Trial Version 6.2.

When I publish a file in Content Services, each iteration, it overwrites the existing file in the folder because it has the same name. How can I save it as a new file (for each process run)?

Thank you.

2 Replies
abbask01
Senior Member

Re: Generate Document Task - Create new file each run instead of overwriting

make your file name unique (append process instance id), or may be add your files in process instance id based folder names.

Hope It helps.

Regards,
Abbas
shmalik
Active Member II

Re: Generate Document Task - Create new file each run instead of overwriting

Hi Abbas,

I now made the file name with a variable from my form unique: ${variableFromForm}_filename.
Additionally I added subfolders like you suggested. It works perfectly fine now.

Thank you very much for information and your fast response!

Best regards,
shmalik