Ok, I am really struggling with getting a Configurable Variable set using WFM models and using them in an external task.
Basically, we identify an on-demand deployment vs and overnite deployment in the workflow, and we need that info.
So, in WFM I created a configurable variable named deptype as well as a Variable under Job Variables called Gdeptype and set it equal to the deptype configurable variable. (see screenshot)
This is all set in the workflow properties.
If I start a model and use iwgetwfobj I can see the variable (see screenshot).
However, when the external tax runs, it is not getting the variable. Here is the code snipet I am using to try to get it:
$workflow = new TeamSite::WFworkflow($id) or print "Error 1: $!\n";
$Cdeptype = $workflow->GetVariables() or print "Error 2: $!\n";
while ( ($k,$v) = each %Cdeptype ) {
print "$k => $v\n";
}
print LOG "TASK: $workflow\n";
print LOG "CDEPTYPE: $Cdeptype\n";
I'm trying to both print $Cdeptype if its a string, as well as print it out if its a hash.
I have tried both GetVariables() and GetVariable(Gdeptype) to get this variable. Here is what I get printing to a log:
TASK: TeamSite::WFworkflow=HASH(0x1521c94)
CDEPTYPE:
DEPTYPE: $deptype
Any thoughts? The suggestions given in the forums have not seemed to help yet.
Thanks!!!