Hi all,I have some files in a job and want to attach the same files in a WFtask of that job. My WFTask is being declared thru dynamic workflow creation using WFConstructor.Any suggestions / pointers are all welcome.Working Env : TS 6.1 and TS 6.7.1Thanks,
use TeamSite::WFconstructor;my @attach_files = ();my @attach_file_comments = ();# Populate File Arrays. . .declare_workflow(name => "Foo Moo WF", owner => $iw_user, creator => $iw_user, description => "Foo Moo", files => \@attach_files, file_comments => \@attach_file_comments,);
use TeamSite::WFconstructor;my @attach_files = ();my @attach_file_comments = ();# Populate File Arrays. . .declare_workflow(name => "Foo Moo WF",owner => $iw_user,creator => $iw_user,description => "Foo Moo",files => \@attach_files,file_comments => \@attach_file_comments,);
Thanks Boris,The solution provided is to attach the files with dynamically generated workflow, however i need to pass on these files to WFTask element of the same workflow.
Please explain exactly what you mean by "dynamically generated workflow" and "pass on these files to a WFTask".Are you providing a WFT or a job spec to the WFTask?.
If I recall (it's been a while since I've head to deal with nested workflows) the child workflow either gets all the parent workflows files by default, or has access to a parent taskid and/or jobid from which it can obtain the file list - at the very worst you can start the workflow out with an externaltask that uses TeamSite::WFworkflow->GetParentTask() and retrieve the files from there.