TaskSequence.Task

Description

A class representing an individual task in a TaskSequence.

Properties

involved1 Gets/sets the involved1 value of the task.
involved2 Gets/sets the involved2 value of the task.
rank Gets/sets the rank of the task inside its owning task sequence.
state Gets the state of the task.
type Gets/sets the type of the task.
var1 Gets/sets the var1 value of the task.
var2 Gets/sets the var2 value of the task.
var3 Gets/sets the var3 value of the task.
var4 Gets/sets the var4 value of the task.

Details

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

TaskSequence.Task.involved1

treenode involved1

Description

Gets/sets the involved1 value of the task.


TaskExecuter op = Model.find("Operator1");
TaskSequence ts = op.taskSequences[1];
treenode involved1 = ts.currentTask.involved1;
...
      
Do no remove, this fixes the anchor on doc.flexsim.com

TaskSequence.Task.involved2

treenode involved2

Description

Gets/sets the involved2 value of the task.


TaskExecuter op = Model.find("Operator1");
TaskSequence ts = op.taskSequences[1];
treenode involved2 = ts.currentTask.involved2;
...
      
Do no remove, this fixes the anchor on doc.flexsim.com

TaskSequence.Task.rank

int rank

Description

Gets/sets the rank of the task inside its owning task sequence.


TaskExecuter op = Model.find("Operator1");
TaskSequence ts = op.taskSequences[1];
int rank = ts.currentTask.rank;
...
      
Do no remove, this fixes the anchor on doc.flexsim.com

TaskSequence.Task.state

readonly int state

Description

Gets the state of the task.

The state of a task will be one of the following values:

  • TASKSTATE_UNFINISHED: The task is not yet finished, and it is not being actively executed.
  • TASKSTATE_ACTIVE: The task is currently being executed.
  • TASKSTATE_COORDINATED: Deprecated. The task is currently being executed as part of a coordinated task sequence.
  • TASKSTATE_FINISHED: The task has been finished.

TaskExecuter op = Model.find("Operator1");
TaskSequence ts = op.taskSequences[1];
int state = ts.currentTask.state;
...
      
Do no remove, this fixes the anchor on doc.flexsim.com

TaskSequence.Task.type

int type

Description

Gets/sets the type of the task.


TaskExecuter op = Model.find("Operator1");
TaskSequence ts = op.taskSequences[1];
int curTaskType = ts.currentTask.type;
...
      
Do no remove, this fixes the anchor on doc.flexsim.com

TaskSequence.Task.var1

Variant var1

Description

Gets/sets the var1 value of the task.


TaskExecuter op = Model.find("Operator1");
TaskSequence ts = op.taskSequences[1];
Variant var1 = ts.currentTask.var1;
...
      
Do no remove, this fixes the anchor on doc.flexsim.com

TaskSequence.Task.var2

Variant var2

Description

Gets/sets the var2 value of the task.


TaskExecuter op = Model.find("Operator1");
TaskSequence ts = op.taskSequences[1];
Variant var2 = ts.currentTask.var2;
...
      
Do no remove, this fixes the anchor on doc.flexsim.com

TaskSequence.Task.var3

Variant var3

Description

Gets/sets the var3 value of the task.


TaskExecuter op = Model.find("Operator1");
TaskSequence ts = op.taskSequences[1];
Variant var3 = ts.currentTask.var3;
...
      
Do no remove, this fixes the anchor on doc.flexsim.com

TaskSequence.Task.var4

Variant var4

Description

Gets/sets the var4 value of the task.


TaskExecuter op = Model.find("Operator1");
TaskSequence ts = op.taskSequences[1];
Variant var4 = ts.currentTask.var4;
...