[php]
#======================================================================
# Included Modules
#======================================================================
use TeamSite::Config;
#======================================================================
# Set some variables for later use
#======================================================================
my $areavpath = __VALUE__('iw_workarea');
my ($iw_user) = __VALUE__('iw_user');
# my $startTaskCGI = "C:\\Interwoven\\TeamSite\\deploySampleContent.ipl";
my $iwhome = TeamSite::Config::iwgethome();
my $iwmount = TeamSite::Config::iwgetmount();
my $iwperl = "$iwhome/iw-perl/bin/iwperl";
# my $test_command = "$iwperl $wft_dir/$this_dir/sample_external_task.ipl";
my $test_command = "$iwperl $iwhome/iw-perl/testFile.pl";
my $mykeys = "";
my $js = "";
if (__ELEM__('iw_file')){
$mykeys = __VALUE__('iw_file');
}
foreach $key (sort keys %{$cgi->{form}})
{
$mykeys = $mykeys.$key;
if (!ref $cgi->{form}{$key})
{
print "key -- $key, value -- $cgi->{form}{$key}
";
}
else
{
print "else --- $cgi->{form}{$key}
";
$taskid = TeamSite::CGI_lite->escape_html_data(@{$cgi->{form}{$key}});
}
}
$js .= qq(<script language="javascript">);
$js .= qq(document.getElementById("submitButtonAbove").disabled = true

;
$js .= qq(document.getElementById("submitButtonAbove").href = "javascript:void(0);"

;
$js .= qq(document.getElementById("submitButtonBottom").disabled = true

;
$js .= qq(document.getElementById("submitButtonBottom").href = "javascript:void(0);"

;
$js .= qq(alert("testing");</script>);
#======================================================================
# JOB FORM DATA CAPTURE
#---------------------------------------------------------------------
# This section capture the necessary data on the job creation form in
# order to dynamically assemble a workflow.
#======================================================================
TAG_info(
iw_debug_mode => "",
iw_output_file => "",
iw_desc =>
[ html => "",
label => "Job Description",
error_msg => 'Please enter a description',
],
);
CGI_info(
error_bgcolor => "C0C0C0",
error_label_bgcolor => "C0C0C0",
error_data_bgcolor => "C0C0C0",
valid_bgcolor => "C0C0C0",
error_text_color => "maroon",
title => "The Deployment Wizard",
html_body_options => "bgcolor='white'",
post_tagtable_html => "$iwhome
$mykeys
$js
Please enter job description and click the \"Start Job\" button to initiate the deployment... ",
);
#=====================================================================
# XML JOB SPECIFICATION SKELETON
#---------------------------------------------------------------------
# This XML section is used to generate the job specification files
# based on input provided by the end-user in the job creation form.
#=====================================================================
]]>
owner="__TAG__('iw_user');"
creator="__TAG__('iw_user');"
description="__TAG__('iw_desc');">
#
............................[/php] When I try to run this workflow to test, I get an error
"Invalid workflow
Missing command external task Start"
Now I have provided command in here, why is it not executed ?
If I want to test this workflow through command line, how can I do it ? How can I debug this wf ?
I have put both debugging lines of code as mentioned in manual. But when I start the workflow, iw_debug_mode automatically sets to false eventhough I have provided value = true in here.
I want to insert inline screenshot here. How can I do that ? I have attached zip file of screenshot.