I have following workflow[php] #------------------------------------------------------------------------------
# File author_submit.wft
# Use default workflow for author seat
#
# Copyright 1999 Interwoven Inc.
# All rights reserved.
#------------------------------------------------------------------------------
use TeamSite::Config;
use TeamSite::JavaResourceBundle;
# Load the appropriate resource bundle for this page.
my $dir = TeamSite::Config::iwgetlocation("iwconfigs") . "/wft/locale";
my $localizer = TeamSite::JavaResourceBundle->new();
my $propfile = "authorsubmit_" . __VALUE__('iw_locale');
my
@bundle = $localizer->load( $dir, $propfile );
my $iwhome = TeamSite::Config::iwgethome();
## my $iwperl = "$iwhome/iw-perl/bin/iwperl";
my $iwperl = "$iwhome\\iw-perl\\bin\\iwperl";
my $test_command = "$iwperl $iwhome\\iw-perl\\testFile.pl";
## my $test_command = "$iwperl $iwhome/httpd/iw-bin/sample_external_task.ipl";
my $submit_image = $localizer->format('submit_image');
my $submit_image_label = $localizer->format('submit_image_label');
CGI_info(
title => $localizer->format('page_title'),
locale => __VALUE__('iw_locale'),
error_label_bgcolor => "#EEEEEE" ,
cancel_label => $localizer->format('cancel_button_label') ,
submit_label => $localizer->format('submit_button_label') ,
);
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'),
],
iw_debug_mode => "\n",
iw_output_file => "\n",
);
# 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');
}
]]>
owner="__TAG__('iw_user');"
creator="__TAG__('iw_user');"
description="__TAG__('iw_submit_comment');">
owner="__TAG__('iw_areaowner');"
description="Author Content Approval"
start="t"
readonly="t">
if (
@submit_file != 0)
{
__INSERT__("\n");
for (my $i=0; $i <
@submit_file; ++$i)
{
__INSERT__("
"comment='Submitted by __TAG__(iw_user);'/>");
}
__INSERT__("\n");
}
]]>
owner="__TAG__('iw_user');"
description="Author Work">
owner="__TAG__('iw_areaowner');"
description="Content Submission"
unlock="t"
savecomments="t">
[/php]When I run this workflow, it should submit selected files to staging after approval. When I run this WF, it moves to Approver. Now when I approve this, job becomes "no longer valid".
I don't think this is a successful end to workflow. I checked staging, there is no workarea by the name I have created.
test is the workarea I created and file1.txt is submitted from here //ServerName/default/main/Sandbox/WORKAREA/test/documents/file1.txt
So after successful completeion, it should look as follows in staging. But in staging I see following structure
//ServerName/default/main/Sandbox/STAGING/documents/file1.txt
But in staging, I don'r see test workarea at all.
When I create a new workarea under WORKAREA in TemSite, it will automatically create same workarea in STAGING, right ? SO why do I not see test workarea in staging ?
After deployment I am getting an error. Screenshot is attached herewith.
Please let me know, whats wrong in here.
Thanks