Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Timed deployments
sgersh
We're looking to attach to each workflow, a feature that lets the author decide when they content should be deployed. This will be used to time the deployment to the right time of day, like, for example, press releases.
I'm sure this is done in a lot of places. I could use some sample code/tips to help us get started.
Thank!
Find more posts tagged with
Comments
Migrateduser
Use the TeamSite::WFtask->SetTimeout with your <timeout> tags.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
taiyo
Is there a code expample of this somewhere?
Thanks
taiyo
I'm thinking that I use use TeamSite::WFtask->SetTimeout; as you mention in the .wft file and then you create a timout variable that the use can enter the value in.
Perhaps like so ....
TAG_info(
iw_desc =>
[ html => "<textarea rows='5' cols='40'></textarea>",
label => "Job Description",
error_msg => 'Please enter a description',
],
);
timeout =>
[ html => "<textarea rows='5' cols='40'></textarea>",
label => "Time to Wait",
error_msg => 'Please enter a deploy wait time',
],
);
This of course is not working yet but would like to get it going.... any help would be much appreciated
taiyo
Anyone have some code or direction to documentation on how to implement timed deploys?
Thanks,
taiyo
Adam Stoller
In the WFT you code the timeout in XML format - (RTFM, Read the iwwf.dtd)
In an externaltask or cgitask script is where you would use the TeamSite::WFtask:
etTimeout() function - but it can only be used to *ADJUST* a timeout that exists on a given task, *not* to create a timeout for a task that did not have one initially defined.
You can use the TAG_info() section to prompt for an initial timeout value if you want, which then becomes a WFT form variable or you can turn it into a perl variable - which you can then access later on in your WFT when you go to specify the timeout for a given task (or tasks).
Does that help?
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com