Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
wfid in cgi script
brin
Hi,
In Teamsite workflow pdf file, its given that CGI scripts do not take command line arguements. I want to get the wfid indside the cgi script, is there any method for that.
I tried doing the following way but am not getting any values in the wfid variable.
my ($wfid,$taskid,$area) = (shift,shift,shift);
my $job = new TeamSite::WFworkflow($wfid);
my $Dep_result = $job->GetVariable('Dep_result');
$Dep_result is a workflow variable in the wft file.
Thank You,
Brinda
Find more posts tagged with
Comments
Pratheesh
Try the below code
my($CGI) = TeamSite::CGI_lite->new();
$CGI->parse_data();
my($taskid) = $CGI->{form}{iw_taskid} || $CGI->{form}{task_id};
my($task) = TeamSite::WFtask->new($taskid);
my($wfid) = $task->GetWorkflowId();
Regards,
Pratheesh
brin
Hi,
Thanks a lot its working now.
Brinda