Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Lock DCR until end of the workflow
System
Hi,
We have a requirement to keep edited dcr locked until the workflow ends. We are on TS6.1 SP1/W2K. We have external task as the start task. At the time of initiating the workflow we are seeing a key Icon on the dcr in UI. After hitting the first external task, workflow transitions to template based email task then user task. By the time workflow transitioned to user task the key Icon is gone, we are seeing pencil Icon.
I tried manually locking using iwlock clt from command line, still its behaving the same way... loosing lock. I also tried lock=t attribute for all user/group tasks. Still no use. Has anyone faced this problem before and any input in this regard is highly appreciated.
Thanks,
Krishna.
Find more posts tagged with
Comments
iwovGraduate
Using lock=t in all your tasks should do it.
Check if any part of your workflow (externaltasks particularily) explicitly unlocking the file(s) ?
Migrateduser
Thanks for the input.
I copied the following message from workflow guide
"Locks External to Workflow Engine:
If you use a lock="t" attribute, that exists for most tasks, this will cause your workflow to appear to go into limbo. The workflow engine will attempt to get the lock on the files and will fail because the lock is outside of its control, and then it will sleep for a small amount of time and try again – indefinitely.
If you use a locktask element, which has a success and a failure branching structure, this situation will lead directly to the failure branch. You can configure an external task to run iw-home/local/bin/unlock.ipl to remove external-to-workflow locks on files associated with the job."
Not realizing this fact I tried lock=t to all tasks, then we saw the above said behaviour and thats when I tried lock=t to only user/group tasks. I am looking into external tasks for any explicit unlocks as you suggested.
Thanks,
Krishna.
Adam Stoller
Also make sure you aren't going through a submittask with unlock="t" set ...
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Migrateduser
Thank you guys.
One of the email header tpl is unlocking files. I commented out the unlocking code. I am now doing more unit testing to make sure its not breaking anything else.
I appreciated pointers. Thanks again.
Krishna.