Hello. I'm new to this forum, and I find it very informative. We have workflow problems somewhat related to the "Retrieve Job ID in wft" thread posted by endender. We are trying to pass custom job variables to the email notification. Let's say they are
var_a and
var_b. We are using TeamSite 5.5.2
So anyway, the variables are declared in the workflow like this:
<variables>
<variable key='
var_a' value='__TAG__(
var_a);' />
<variable key='
var_b' value='__TAG__(
var_b);' />
</variables>
The values are inputted via the CGI instantiator. Sure enough, I turn on iw_debug_mode and see that the values that the user has inputted is there.
Once the workflow calls the email notification task, the lines of the script written to pick up these variables are these:
my ($command_line_argument, $wfid,
$taskid, $areavpath,
@files) =
@ARGV;
.
.
.
my
$task = new TeamSite::WFtask(
$taskid);
my
%varHash =
$task->GetVariables();
Finally, a script was written to display these variables:
print $mailer <<EOS;
<html>
.
.
.
<p><b>Job Name (ID): </b> @{[
$varHash{'
var_a'} ]} <p>
<p><b>Priority: </b> @{[
$varHash{'
var_b'} ]}</p>
.
.
.
EOS
And here is where the problem is.
var_a and
var_b are not displaying on the email notification. So, does anyone have any suggestions? I was thinking that the GetVariables() function should be GetVariable() but that didn't do it.
An updated service pack and patches were installed. I was thinking that maybe this caused it. It was working before. Anyway, there's a "$VERSION" variable in the email script, which contains a different number - 5.5.2 Build 9036 SYM Interwoven 20020608 - from the logon page - 5.5.2 [Build] 21737 [SYM Interwoven] 20030630. Might this have caused it?
I'd appreciate it if anyone can help me on this.
amolivar