In this code, its working fine. But Submit task is not working. It does not deploy files to staging. Why is that. I checked, all succ and pred are specified properly and accurately.
Workflow is moving through the SUBMIT task, but submit action to staging is not getting triggered.
[html]
#------------------------------------------------------------------------------
# File author_submit_with_email.wft
# Use modified workflow based on the default workflow for author seat
#
# Copyright 2001, 2002 Interwoven Inc.
# All rights reserved.
#------------------------------------------------------------------------------
use TeamSite::Config;
use TeamSite::JavaResourceBundle;
use TeamSite::IW_cfg;
my $iwcfg = TeamSite::IW_cfg->new();
$iwcfg->read();
my $web_host = $iwcfg->lookup('iwwebd', 'host', 'localhost');
my $cgi_command = "dueDateCheck.ipl";
# Load the appropriate resource bundle for this page.
my $iwconfigs = TeamSite::Config::iwgetlocation("iwconfigs");
my $dir = $iwconfigs . "/wft/locale";
my $localizer = TeamSite::JavaResourceBundle->new();
my $propfile = "authorsubmit_" . __VALUE__('iw_locale');
my
@bundle = $localizer->load( $dir, $propfile );
my $submit_image = $localizer->format('submit_image');
my $submit_image_label = $localizer->format('submit_image_label');
my $banner_html=<
src="$submit_image" alt="$submit_image_label">
EOS
CGI_info(
title => $localizer->format('page_title'),
error_label_bgcolor => "#EEEEEE" ,
locale => __VALUE__('iw_locale'),
cancel_label => $localizer->format('cancel_button_label') ,
submit_label => $localizer->format('submit_button_label') ,
banner_html => $banner_html,
);
TAG_info( iw_priority =>[html => "HighMediumLow",
label=> "Priority",
is_required => 'true',
],
pagename => [ html => ""."
", label => "Page Name" , ],
);
TAG_info(
# The value of the tag "iw_submit_comment" (obtained from the user)
# will appear as a user variable on the submit task.
# It will also be used as the job's description.
iw_submit_comment =>
[ html => "".
"
",
error_msg => $localizer->format('submit_comment_error_msg'),
label => $localizer->format('submit_comment_label'),
],
);
# make sure the file list is defined
my
@submit_file = (); # files sorted in unencoded
if (__ELEM__('iw_file')) # form, then html-encoded
{ # by hand via CGI_lite
@submit_file = map { TeamSite::CGI_lite::escape_html_data($_);
} sort __VALUE__('iw_file');
}
for (my $i=0; $i<
@submit_file; ++$i)
{
TAG_info(
"File_comment_$i" =>
# [ html => $localizer->format('comment_label') .
[ html => "$submit_file[$i]".
# "".
" ",
error_msg => $localizer->format('comment_label_error_msg'),
is_required => 'false',
label => '',
],
);
}
]]>
if (
@submit_file != 0)
{
__INSERT__("\n");
for (my $i=0; $i <
@submit_file; ++$i)
{
__INSERT__("
"comment='__TAG__(File_comment_$i);'/>");
}
__INSERT__("\n");
}
]]>
owner="__TAG__('iw_user');"
description="Error in deploying files.">
owner="__TAG__('iw_user');"
description="Content Submission"
unlock="t"
savecomments="t">
owner="__TAG__('iw_user');"
description="Initiating the approval process">
owner="__TAG__('iw_user');"
description="Please complete the task">
owner="__TAG__('iw_user');"
description="Please complete the task">
description="Author Content Approval"
readonly="t">
owner="__TAG__('iw_user');"
description="Check Task Due Date Before Queuing"
immediate="t"
readonly="t">
description="Initial Approver Re_work" readonly="f">
owner="__TAG__('iw_user');"
description="Author RE_Work">
[/html]
I am confused with this. Please let me know, whats wrong with this.
Thanks,
Niniti