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)
having problems with the <externaltask> tag
sandy_893
Hi,
I have a small problem with the workflow that i am creating. I want the to set the start attribute to false of an external task, but when i do that it gives me an error that "unable to the files".
if any one has some suggestions, plz let me know.
thanx
sandy
I am also providing the code :
<externaltask lock = "f" name = "Submit_Mail_Reject" owner = "__INSERT__($sUser);" retry = "t" start = "t" description = "Reject Job Mail">
<areavpath v = "__INSERT__($sWorkarea);"/>
<successors>
<successorset description = "Sending Reject Mail">
<succ v = "AuthorWork"/>
</successorset>
</successors>
<command v="__INSERT__($mailcmd);"/>
<files>
<template_script><![CDATA[
for (my $i=0; $i < __ELEM__('iw_file'); ++$i)
{
__INSERT__("<file path='__TAG__(iw_file[$i]);' comment='File Added/Updated'/>\n");
}
]]></template_script>
</files>
<activation>
<pred v="Approver"/>
</activation>
<variables>
<variable key="mail_from" value= "__TAG__('Contributor');" />
<variable key="mail_to" value= "__INSERT__($sUser);" />
<variable key="mail_html" value="1"/>
<variable key="mail_subject" value = "__INSERT__($mailSubject);" />
<variable key="mail_message" value= "File(s) Reject" />
</variables>
</externaltask>
Find more posts tagged with
Comments
Jeremy
Hi,
You think can only add files like that to a start task.
Can you not move the
<files>
<template_script><![CDATA[
for (my $i=0; $i < __ELEM__('iw_file'); ++$i)
{
__INSERT__("<file path='__TAG__(iw_file[$i]);' comment='File Added/Updated'/>\n");
}
]]></template_script>
</files>
code into your start task?
Adam Stoller
Jeremy is correct - (he said "think") - the <files> clause can only be associated with a start="t" task.
Other files can be added during the course of other tasks - but they cannot make use of the <files> clause for pre-selected files.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Jeremy
Thanks Fish! Was pretty sure but knew you would chime in to confirm!
sandy_893
is there any alternative way to do this as i need to send the files along with the mail.
jbonifaci
If you include them with your start task, you will still be able to reference them from your externaltask using TeamSite::WFtask->GetFiles().