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)
Taskid is wrong
mdender
When I launch an external task to regenerate files, the call back from the .ipl is failing. Therefore, the task doesn't transition in the to do list. I output the taskid into a log file to check to see if it was matching, and discovered that it is one number behind the taskid in the to do list. If I add a one to the taskid in the .ipl, the callback succeeds.
Does anyone know why the taskid would be lagging like this? It doesn't do this in any of my other workflows/scripts.
I have attached the workflow and script.
<font face-"Arial" color="#000099"><b>Michael D. Ender</b></font>
p: 989.638.4163
Find more posts tagged with
Comments
Adam Stoller
Your command (in the wft) says:
<command v = "iwperl E:\Interwoven\TeamSite\custom\bin\regen.ipl Ylithium_INSERT__($sPath);"/>
Your script says:
my($jobid, $taskid, $area) = (
@ARGV[0
..2]);
The problem is that the argument you're passing in comes BEFORE the jobid, taskid, and area - and so:
- the jobid has the argument you passed in
- the taskid has the jobid
- the area has the taskid
As it happen, the jobid + 1 = taskid of first task defined in job - and that's why adding one to the taskid value you are capturing (the actuall jobid) appears to work.
Either get rid of the argument you are passing in, or adjust the reading of the command line args to be
@ARGV[1
..3] instead of
@ARGV[0
..2]
--fish
(Interwoven Senior Technical Consultant)