TS 5.5.2 W2K
I have a workflow that the user can either start on the last task or on the first task. The first 5 tasks perform some operation on a bunch of files and the last one is a "sleep until tomorrow" task. The user can select to process the files now or have it wait and process them tomorrow.
My idea was to create a radio button that was something like:
iw_run_now =>
"<input type='radio' value='t'>Yes</input>" .
"<input type='radio' value='f'>No</input>",
Then on the first task I had:
start="__TAG__(iw_run_now);"
and on the last tag I had:
start="__INSERT__( iw_return_negative( '__TAG__(iw_run_now)' ) );"
The function iw_return_negative was (I thought) pretty simple:
sub iw_return_start {
my ($value) =
@_;
chomp $value;
if ($value eq "t") {
return "f";
} else {
return "t";
}
}
The function always returned the "else" condition regardless of the value passed in. I even modified the return (for testing purposes) to return "received=$value returning=t" on the else clause and it would return "received=t returning=t".
Any guesses?
I've even tried to pass in "TF" or "FT" and take the first or second character depending upon which one I wanted, that didn't work either! It appears the $value is not really what it seems to be!