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)
attach files with a task
prasadanand
Can any one tell me how to attach files with a workflow..
what i exactly want is x (any role) opens the teamsite opens a template and submits them ....which ultimately go to deploy......starting a deployment tasks...
before submitting i would want the user to attach all the images and any other files associate with the template attach and then submit...so that all the assets ....go the staging area along with the template..
whats the best way i can do this...and let me know if any of you have an already written code for this..
Find more posts tagged with
Comments
akshathp
You could let users enter/select files by using a CGI TASK in your workflow as a first task that gets kicked off upon initiating the workflow. This CGITASK will gather the list of files given by user interactively and would use iwaddtaskfiles CLT to add these files to the same workflow instance.
Hope this helps!
Akshat Pramod Sharma
Interwoven Inc.
Johnny
You could also write up a parser that checks for any external assets and then compares them to the staging area.
If they exist in the workarea but not the staging area you can usually assume they need to be attached aswell.
John
Sydney, Australia
akshathp
Yes. With this, you could generate a list of possible files/assets and then let user select fromt hat generated list in that CGITASK. This way user will get a possible list and then will select required items.
Hope this helps!
Akshat Pramod Sharma
Interwoven Inc.
Adam Stoller
it's probably not just if they don't exist in staging, it should be if they don't exist *or* are modified versions of what's in staging - but frankly, I'd just swoop them all up because submit will ignore files that haven't changed.
Other than that, this is definitely the approach I'd go for - more automated, less prone to human error and/or forgetfulness, and less taxing on the user too.
--fish
(Interwoven Senior Technical Consultant)
Hazzie
What we have done is to allow the users to modfiy the files within a workarea. Then as part of a workflow, we use a CGI TASK that presents a html form to the user. This form has in it a table with 1 row per file modified in the workarea and a checkbox next to it. If the user selects the check box and press's a submit button the sleected files are attached to the workflow.
For further info look at iwlistmod (to list files) and we use the WFTask.pm function AddFile() (to add them to the workflow).
Hope that helps.
Hazzie
TS 5.5.2 on NT.