Task becoming invalid when we invoke a task from workflow and using the taskid to refere the existing task(that is newly created task from workflow)
(windows 2003, TS 6.5)
1. Call for external task in workflow(from generated job specification)
<externaltask name="Local_Group_Add" owner="domain1\ts-admin" lock="f" start="t">
<command v='D:/iw-home/iw-perl/bin/iwperl

/iw-home/local/bin/PLC_group_assignment.ipl "3" "HA888_22" "domain1\user1" "domain1\user2" '/>
2. Code from PLC_group_assignment.ipl
This is the first task in workflow, it invoked, but task becoming invalid.
use TeamSite::WFtask;
my $varCount = $ARGV[0] +1;
$projectNumber = $ARGV[1];
my $areaInt = $varCount +2;
my $area = $ARGV[$areaInt];
my $taskInt = $varCount +1;
my $task = new TeamSite::WFtask($ARGV[$taskInt]);
3. The values are
$task->IsValid() - 0(zero)
$task->GetArea() - GetArea failed: invalid workflow xml
projectNumber=HA888_22
varCount=4
areaInt=6
taskInt=5
area=\default\main\shan\internet\md\Projects\HA888_22\WORKAREA\workarea
taskid=3633
3. The task exists, 3633, but the task->IsValid() becoming 0.
4. I didn't understand why it is becoming 0(invalid), just got the value and trying to use with WFtask.
5. This is working code in 5.5.2, is there any change in 6.x?
6. when it is executing the ipl file, why is it showing error : invalid workflow xml...
thanks
Edited by raot on 09/30/05 05:46 AM (server time).