How about using workflow job variables?You could do something like the following to create a job variable in an external task:use TeamSite::WFworkflow;$workflow = new TeamSite::WFworkflow($wfid);$workflow->CreateVariable("DBFlag", $dbflag);And then you can look for the variable later in the workflow with something like the following in a later external task:use TeamSite::WFworkflow;my $workflow = new TeamSite::WFworkflow($wfid);my $headNumber = $workflow->GetVariable("DBFlag");Should work a treat!Cheers,Stuart
wfvarfinishop
...use TeamSite::WFworkflow;use TeamSite::WFtask;...my ($jobid, $taskid) = @ARGV;my $task = TeamSite::WFtask->new($taskid);if (! $task->IsValid()) { die "Invalid taskid '$taskid' found - aborting!";}my $workflow = TeamSite::WFworkflow->new($wfid);if (! $workflow->IsValid()){ $task->CallBack(0, "Invalid jobid '$jobid' found"); die "Invalid jobid '$jobid' found";}my $headNumber = $workflow->GetVariable("DBFlag");...$task->CallBack(1, "Done");
2 possible earlier tasks.