Win 2000
TS 6.5
When a workflow is initialized (a Submit for example) do all <template_script> blocks get parsed and executed?
I am looking at the the solutions/author_submit_with_email.wft and there is large code block in the root of the workflow template then there is a smaller block within the <externaltask ... /> node. I am wondering if the template script within the external task is executed at that step or if it is executed when the workflow is initialized?
--snippet--
<externaltask name="Email_Approver"
owner="__TAG__('iw_user');"
start="t"
description="Please complete the task">
<areavpath v="__TAG__('iw_workarea');"/>
<successors>
<successorset description="Author Content Approval">
<succ v="Approver"/>
</successorset>
</successors>
__INSERT__(get_cmd("iw_solution_email.ipl", "Approver"));
<template_script><![CDATA[
if (
@submit_file != 0)
{
__INSERT__("<files>\n");
for (my $i=0; $i <
@submit_file; ++$i)
{
__INSERT__("
<file path='$submit_file[$i]' " .
"comment='__TAG__(File_comment_$i);'/>");
}
__INSERT__("</files>\n");
}
]]></template_script>
<activation>
<pred v="AuthorWork"/>
</activation>
<variables>
<variable key="iw_mailheader_pt" value="reviewer_iwmailheader.tpl"/>
<variable key="iw_mailbody_pt" value="reviewer_iwmailbody.tpl"/>
<variable key="iw_mailbody_text_pt" value="reviewer_textbody.tpl"/>
</variables>
</externaltask>
Thanks in advance.