cancel
Showing results for 
Search instead for 
Did you mean: 

Locking items when editing

drbaz
Champ in-the-making
Champ in-the-making
From a CIFS share, when I edit a document, I want to "lock" it to prevent anyone else editing it until I save it back to CIFS.

Any suggestions ?

Thanks

Barrie
7 REPLIES 7

kevinr
Star Contributor
Star Contributor
Hello,

There are a couple of solutions to this at present, they require some setup from the web-client first:

. Create a folder called Check Out, add a rule that checks out anything added to it - make a shortcut on the desktop to the CIFS folder for it, and drag anything you want to check-out into the folder.

. Also make a space call Check In with a rule that checks in + desktop shortcut as above.

. Probably also good to have a folder called Working Content that is where stuff is checked out to (no rules on this one, just a shortcut)…

. Then you can add Working Content to your Windows Briefcase and work offline with it if needed (if you are on windows)

Hope this helps,

Kevin

drbaz
Champ in-the-making
Champ in-the-making
Thamks Kevin .. that certianly helped me understang the check-out/edit/check-in prodess.

I have implemented your suggestions, but I get the following error logged in alfresco.log when I try to move a document to the check-in folder with the result that the document is not moved. Any suggestions ?

16:01:33,185 ERROR [org.alfresco.smb.protocol] Closing session due to exception
javax.transaction.RollbackException: The transaction was not committed - Can not perform operation since the node (id:a498cdc0-449e-11da-98cd-4f272be8bf92) is locked by another user.
   at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:269)
   at org.alfresco.filesys.smb.server.SMBSrvSession.run(SMBSrvSession.java:1572)
   at java.lang.Thread.run(Thread.java:595)

Thanks

Barrie

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

This problem is fixed in the latest RC2 that's available now.

Cheers

Gary

omegerard
Champ in-the-making
Champ in-the-making
Kevin

I tried this setup:

. Create a folder called Check Out, add a rule that checks out anything added to it - make a shortcut on the desktop to the CIFS folder for it, and drag anything you want to check-out into the folder.

. Also make a space call Check In with a rule that checks in + desktop shortcut as above.

Problem is that when you define a rule to check out in a specific folder called "Check Out", the (automatically) checked in file will arrive there, whereas you actually wanted to have it in the original doc space. What kind of rule would put the document in its rightful place?

Ludo

csiege
Champ in-the-making
Champ in-the-making
Revisting this item… still exists in 1.2.1… 

I can begin editing a file in CIFS, and still checkout as a different user from the web interface…

kevinr
Star Contributor
Star Contributor
Please raise a bug in JIRA with the full details of the issue and we'll take a look for 1.3.

Thanks,

Kevin

kiosklim
Champ in-the-making
Champ in-the-making
Hello,

There are a couple of solutions to this at present, they require some setup from the web-client first:

. Create a folder called Check Out, add a rule that checks out anything added to it - make a shortcut on the desktop to the CIFS folder for it, and drag anything you want to check-out into the folder.

. Also make a space call Check In with a rule that checks in + desktop shortcut as above.

. Probably also good to have a folder called Working Content that is where stuff is checked out to (no rules on this one, just a shortcut)…

. Then you can add Working Content to your Windows Briefcase and work offline with it if needed (if you are on windows)

Hope this helps,

Kevin

Hello ..im not quite understand with that,can detail it out??As i wanna try it  in demo trial version but not so sure about how..  Smiley Surprisedops: