Home
TeamSite
dcr locks
Renata
Would anyone have a suggestion as to how we could deal with the following scenario:
A user opens and edits a DCR 'a' that contains a reference to DCR 'b'. Once the DCR 'a' is saved & closed there is a background script that updates cetrain fields on one or both dcrs. The problem we have is that two users could be working on the two files, and if user 1 wants to save his changes (both to DCR 'a' and 'b') and a user 2 is already wokring on the DCR 'b', dcr 'b' is locked and nothing is updated on that file. Only dcr 'a' is actually attached to the job (i.e. workflow) so we have a full control over it. DCR 'b' is accessed by the script via IFS.
any suggestion on how to resolve the lock probelm are very much appreciated.
thanks in advance -- R.
Find more posts tagged with
Comments
Migrateduser
It would seem that with the design you're describing, you should check DCR B for locks when you attempt to lock DCR A. You could do this with either a trigger script or a FormAPI CGI call. This pre-lock script could either move locks as needed, or alert the person attempting to edit DCR A that they cannot do so at this time.
However, you may also want to spend more time considering the design. There's a lot of work involved in this sort of dependency tracking--maybe there's a better way?
bw
Bob Walden [bob.walden@interwoven.com]
Interwoven Education Group
IM: Yahoo, MSN bob_walden