Help...
I have been working on this error for several hours and am getting no where. The exact error is "Invalid workflow: not well-formed at line 10 ERROR:00001: Failure in operation". I have gone through line by line, and can't seem to get it resolved. Does anyone see a problem with the following:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE workflow SYSTEM "iwwf.dtd">
<template_script><![CDATA[
#------------------------------------------------------------------------------
#
# workflow for coupons_rebates DCR submissions
#
# By xxxxxxxxx
# May 2004
#------------------------------------------------------------------------------
# setup environment variables
my $iwhome = TeamSite::Config::iwgethome();
$iwhome =~ s|\\|/|g;
# Import routines from library
use TeamSite::Usertask qw(
cleanup_paths
get_names_from_file
get_mail_cmd
make_branchpathlist
);
$DEBUG= 0;
$debugfile = "$iwhome/local/config/wft/gfs/debug/coupons_rebates.dbg";
debug ("----------------------");
sub debug
{
return unless $DEBUG;
my ($message,
@rest) =
@_;
open(DEBUG,">$debugfile") or die "Can't open $debugfile: $!\n";
print DEBUG "$message\n";
close(DEBUG);
}
my $areavpath = __VALUE__(iw_workarea);
$areavpath =~ s|\\|/|g;
my($iw_areaowner) = __VALUE__('iw_areaowner');
my($iw_user) = __VALUE__('iw_user');
my $cmd_generate_page= "$iwhome/iw-perl/bin/iwperl $iwhome/local/config/wft/gfs/scripts/coupons_rebates.ipl";
# attach file list.
my
@submit_file = ();
if (__ELEM__('iw_file'))
{
@submit_file = map { TeamSite::CGI_lite::escape_html_data($_);
} sort __VALUE__('iw_file');
}
# debug mode
if($DEBUG)
{
TAG_info(
iw_output_file => "<input type='text' value='$iwhome/local/config/wft/oomc/work_request.xml'>\n",
iw_debug_mode => "<input type='text' value='true'>\n",
);
}
]]>
</template_script>
<!-- ============================================================ -->
<!-- ======================= Workflow ======================== -->
<workflow
name="Coupons & Rebates DCR Submission"
owner="__TAG__('iw_areaowner');"
creator="__TAG__('iw_user');"
description="CCoupons & Rebates DCR Submission">
<!-- ========= generate page ==== -->
<externaltask
name="Generate Page"
owner="__TAG__('iw_areaowner');"
start="t"
immediate="t"
description="Generate template page">
<areavpath v="__INSERT__($areavpath);"/>
<successors>
<successorset description="Submit">
<succ v="Submit"/>
</successorset>
</successors>
<command v="__INSERT__($cmd_generate_page);"/>
</externaltask>
<!-- ========================== Submit ========================== -->
<submittask name="Submit"
owner="__TAG__('iw_areaowner');"
unlock="t"
description='DCR Content Approval'>
<areavpath v="__INSERT__($areavpath);"/>
<successorset>
<succ v="JobDone"/>
</successorset>
</submittask>
<!-- =================== User Notification ==================== -->
<externaltask name="JobDone"
owner="__TAG__('iw_user');"
description="Please deploy">
<areavpath v="__INSERT__($areavpath);"/>
<successors>
<successorset description = "Please Run the Deployment">
<succ v="end"/>
</successorset>
</successors>
__INSERT__(get_mail_cmd("$iwhome",
xxxxxxxx@****.com'));
</externaltask>
<!-- =============== end ==================== -->
<!-- end of workflow -->
<endtask name="end">
</endtask>
</workflow>