Home
TeamSite
Starting a workflow only upon saving certain DCR
khalid1
Is it possible to start a workflow only upon saving a certain type of DCR ?
I have created a custom workflow. In my workarea, under the templatedata folder I have
services
as one of the categories and
reports
is a specific data-type under this category. So whenever the author creates a new DCR or edits a existing DCR, saves it and closes the edit DCR window, I would like to trigger the custom workflow at this point. I understand that by specifying the
command
for the workflow to be
tt_data
, I can trigger the workflow upon the closing of the edit DCR window.
But, how can I restrict the workflow to be kicked off only upon saving a DCR of type
reports
under the
services
category.
Thanks for reading this entire post and also thanks in advance for responding.
Find more posts tagged with
Comments
Migrateduser
One way would be to do your special "restricted" templating in a seperate branch. That way you could add a <branch_list> element to available_templates.cfg for that tt_data event to restrict that template to just that branch.
Otherwise, you'll have to let the workflow be triggered, but then test the branch in a cgitask as the first task in the workflow, and, if this workflow is NA for the current data type, gracefully terminate the workflow. Considering the first message box always says "Do you want to submit your record for approval?" You could have your "teminate" message just say "Thank you for submitting your record." or some such.
bw
Bob Walden [bob.walden@interwoven.com]
Interwoven Education Group
IM: Yahoo, MSN bob_walden
Adam Stoller
I believe in 5.5.2 you can specify a full areavpath in the branch element of the available_templates.ipl
Prior to 5.5.2, you could use a full areavpath for non-templating-driven jobs, but templating-driven jobs only provided the branch-vpath.
--fish
(Interwoven, Curriculum Development)
Renata
Bob,
I've been waiting over a week now for the support guys to tell us where we can actually modify that message as you suggest. Do you have any idea on where to look for that message? We've been told it's dynamically generated but not where the source is ...
thanks a bunch -- Renata
Migrateduser
I don't know, but I believe it's a fixed string and not something we support changing. It *is* logged as a feature request to make this admin-configurable, but I don;t know the expected time frame.
bw
Bob Walden [bob.walden@interwoven.com]
Interwoven Education Group
IM: Yahoo, MSN bob_walden