Approving content does not remove old file?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2006 04:06 PM
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
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
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2006 04:07 PM
One more thing, possible workaround would be to change my portlet's select so it orders items by date and displays the latest one, but that still leaves a major mess in the Approved directory with many files with same name.
If I were to go that route, since it would be my only option, what is the proper query syntax to order by date?
Thanks
R
If I were to go that route, since it would be my only option, what is the proper query syntax to order by date?
Thanks
R

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2006 09:07 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2006 10:02 AM
How do I restrict duplicate contents in a space? I see the blow note on the wiki:
1.3 UI Rules Enhancements
Support notion of allowing appropriate actions to overwrite (i.e. copy/move/transform may need to overwrite if they have been run before)
But am not able to find any docs on how to do this through the web-client.
Thanks,
Panna
1.3 UI Rules Enhancements
Support notion of allowing appropriate actions to overwrite (i.e. copy/move/transform may need to overwrite if they have been run before)
But am not able to find any docs on how to do this through the web-client.
Thanks,
Panna
