environment: win2003/TS65
A DnR is not running when I introduce workflow query code in the ipl.
Here is the description and code:
I setup a workflow with an external task to a deployment. The deployment runs ok and it includes this DnR:
[html]
<script cmd="c:\\interwoven\\teamsite\\iw-perl\\bin\\iwperl c:\\interwoven\\teamsite\\local\\config\\wft\\solutions\\wft_datadeploy.ipl" />
[/html]
The perl script has the following dd calls:
[html]
my($iwodhome) = $OD_DIR;
my $deploy_cmd = "$OD_DIR/bin/iwodcmd start academy/dd -k iwdd=news";
my $run_cmd = $deploy_cmd;
if(`$run_cmd`) { debug("$dbgInfo","Deployment failed\n"); }
debug("$dbgInfo","deploy_cmd = '$deploy_cmd'\n");
my $deploy_cmd = "$OD_DIR/bin/iwodcmd start academy/mdc_dd -k iwdd=news";
my $run_cmd = $deploy_cmd;
if(`$run_cmd`) { debug("$dbgInfo","Deployment failed\n"); }
debug("$dbgInfo","deploy_cmd = '$deploy_cmd'\n");
[/html]
The script is passed by, or is not running, when I introduce some code in the script to get the filename, like this:
[html]
my ($filelist) = "";
my $task;
if (! $testing) {
# -- Create a task object from the work flow taskid.
$task = new TeamSite::WFtask($taskid);
#####
# Get Files and Build Filelist
#####
my
@files = $task->GetFiles();
$filelist = "$iwhome/tmp/filelist.$wfid";
open (FILELIST, ">$filelist");
foreach my $file (
@files) {
#$file =~ s|/|\\|g;
print FILELIST "$file\n";
}
close FILELIST;
} else {
# for Debugging
$filelist = "$iwhome/tmp/filelist.tmp";
}
[/html]
I have a feeling that the DnR cannot talk to the workflow, as the task has transitioned. Even though I set "before" in the DnR.
My aim is to get the filenames, then filter out the datatype from the path and run a loop to trigger the appropriate -k iwdd= statement. Now it only runs the iwdd=news section.
I would like to trigger datadeploy within a DnR so that the 2 deployments are coordinated within OD.
thanks for paying attention! Any ideas?