I am trying to understand what task is invoked by CallBack() from external task. I have taken following code from manual
[html]
[/html]
This collection of elements can be thought of as a Perl array:
my
@fruits = ("apple", "banana";
my
@vegetables = ("broccoli", "asparagus");
my
@successors = (\
@fruits, \
@vegetables);
The first parameter to the CallBack is essentially an index into the successors array—and as
in Perl, the index starts with 0 and increments up from there. In the above example, a
CallBack of 0 would trigger the tomato task, and a CallBack of 1 would trigger
broccoli task.
"In the above example, aCallBack of 0 would trigger the tomato task, and a CallBack of 1 would trigger broccoli task."
In this code there is no "tomato" task. So is this just an error ? Then again what task will CallBack of 0 invoke ? will it be fruit ?
When I use "$task->CallBack(0, "$COMMENT");" , first parameter 0 of callback will be applicable to successors (ie will it invoke fruit) or will it be applicable to first successorsset subelement which is apple ? I understand it should be applicable to first subelement under successors which is fruit. But then what next task will it invoke, apple or banana ? How will that be decided ?