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)
Preventing file(s) from submission thru a workflow
eddie1
Im using a custom workflow for submission of updated content by authors. This WF is triggered when the author presses the 'Submit' botton.
Im using 'Submit Locking' on my branch.
I want that when an author has submitted a file(s) thru. my workflow, no other Author should be able to submit the same file(s) thru. the workflow until the first workflow containing the file(s)has ended and the file(s) is free.
How do i ensure this ?
Find more posts tagged with
Comments
Adam Stoller
Try using a
locktask
early on in the workflow. The
locktask
has both a
success
and
failure
mode for choosing the next task to transition to, so you could do something like start with a
locktask
that:
on
success
transition to ... whatever you would normally do in this workflow
on
failure
transition to an
externaltask
to send notification of failure to someone, then
transition to a
usertask
(or
cgitask
?) that gives the person a chance to either:
try again, or
abort the workflow
If they choose to try again, transition back to the original
locktask
... or something along those lines.
Note: If a given user tries to submit the same file in two active workflows at the same time - the above process will not get triggered. It will only work if
someone else
tries to submit the same file that is already part of an active workflow.
Note: The above also assumes that at the end of the workflow (on success, not abort), that all files associated with that workflow will be unlocked.
I think that's one way to potentially accomplish what you want.
--fish
(Interwoven, Curriculum Development)