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)
removing a file from a task
Ottawa_IWOV
Is there a way to remove a file from a task. For instance if a file matches a certain vpath, remove it from the task??
Thanks..
Lucas Cochrane
lcochrane@dc.com
Find more posts tagged with
Comments
Migrateduser
In an externaltask you could use iwrmtaskfile.
Jeremy
There is also a function in WFtask.pm similar to the $task->AddFile(<file path from templatedata>).
It is $task->RemoveFile(<file path from templatedata>).
Thats probably what you are looking for.
Migrateduser
My problems with the Perl modules is that they just call the CLTs - I have better control if I call the CLTs directly. Plus I can write the ExternalTask in whatever language I want (Java in this case). I know I could use OpenAPI but for most things it requires a username and password and that are not really relevant in an ExternalTask process.
My basic advice is to always use the CLTs directly.
Migrateduser
I think it's all relative. For most cases, using the modules is as good a way to go as using direct CLT calls. For something like this example, I don't see any advantage of using a direct CLT call if all you want to do is delete a file from the job. I'm sure there are some CLTs that offer greater flexibility or don't even have an associated method in any of the modules. In this case, it probably is fine either way.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com