Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Unable to get a workflow variable
magikandrea
Hi all,
I created a workflow using Workflow builder where I defined some variables.
I have got an external task which should read some values. I do it using the GetVariable() function.
The value returned is always an empty string.
Here is my perl code:
==================================================
use TeamSite::WFworkflow;
use TeamSite::WFtask;
use TeamSite::Config;
my $job = new TeamSite::WFworkflow($ARGV[0]);
my $task = new TeamSite::WFtask($ARGV[1]);
my $scriptName = $job->GetVariable('ScriptName');
==================================================
The value of $scriptName is always an empty string.
In attachment you can find my WFT file.
Is there anybody that can help me?
Thank you very much,
Andrea
Find more posts tagged with
Comments
Migrateduser
You have not defined "ScriptName" variable in the wft thats why you are always geting null when access the variable from an externaltask.
add this to you wft
[html]
[/html]
magikandrea
Thank you batsari.
I'll try as soon as possible and send an update.
Migrateduser
it works!
thank you.
ps: i'm magikandrea's workmate