Hi,
So we've got things running and we're working on our workflow. Right now we have a portlet which communicates with Alfresco usin an alfresco user. The portlet searches for the title of a piece of content in the Approved directory only which the alfresco user has permission to, and nothing else.
The problem is with the following scenario:
1- John goes to Folder A
2- John adds a new file to Folder A
3- Jack logs in and goes to Folder A and approves the content. This is run using the workflow.
4- Alfresco copies the approved content to the Approved directory.
5- The portlet looks up the content via settings in the jboss portal and pulls up the file Jack approved and displays it.
(so far so good)
6- John goes to Folder A and edits the content of the file he created.
7- Jack logs in and approves the file again.
8- Alfresco copies the approved content to the Approved directory.
9- The portlet looks up the content and shows the old version… OOPS
I go in to the Approved directory to look, and sure enough there are 2 copies of the same file, except that one has more recent content.
OOPS! How do we fix that? I thought Alfresco could not create a new file in the same directory which has the same file name, I've tried it and I get an error. Why is it that Approval's copy process doesn't just replace the old file, or at least give us the option to?
Is there something I can do to make this not happen?
Thanks
R