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)
Urgent:Attach files to the manually created job
gururaj_rp
Hi,
I have created a job and invoked from Job Spec file using:
my $wftFileName = "Job_Spec.xml";
my $wf = `/U01/iw-home/bin/iwjobc $wftFileName`;
my $invokeResult = `/U01/iw-home/bin/iwinvokejob $wf`;
The first task of this workflow is user task in which the user can attach files.
But when this workflow is started through program I want to attach some files
which I have in an array so that the user sees these files in his task.
I have created workflow instance:
my $job = TeamSite::WFworkflow->new($wf);
How can I get to the first task and attach the files?Please help.
Thanks.
Find more posts tagged with
Comments
gururaj_rp
Sorry to post this thread.Got the solution after a try..this was the solution:
iwgettaskbyname was not working as $wf had a \n.After removing that I was able to do.Thanks.
chomp($wf); #It has a /n at the end ..remove it
my $job = TeamSite::WFworkflow->new($wf);
#Firs Task:where the files have to been seen
$taskname = "ApprovalSubmit";
my $task_id = `/U01/iw-home/bin/iwgettaskbyname $wf '$taskname`;
my $task = new TeamSite::WFtask( $task_id );
$task->AddMultipleFiles(\
@finalhtmls
, "Translated HTMLs");