Table of Contents

Table of Contents

FlexScript Class - Dispatcher

Dispatcher

Inherits from Object

Description

A class that represents an Object with a task sequence queue, and implements logic to receive and dispatch TaskSequences.

Properties

taskSequences Accesses the task sequences in the dispatcher's task sequence queue. This member can be accessed like an array of TaskSequences.

Details

Do no remove, this fixes the anchor on doc.flexsim.com

Dispatcher.taskSequences

readonly taskSequences

Description

Accesses the task sequences in the dispatcher's task sequence queue. This member can be accessed like an array of TaskSequences.


Dispatcher disp = Model.find("Dispatcher1");
int numTaskSequences = disp.taskSequences.length;
for (int i = 1; i <= numTaskSequences; i++) {
  TaskSequence ts = disp.taskSequences[i];
  ...
}