Search
TaskStatus Enumeration
See Also
 






Specifies status values for a task.

Namespace: MindFusion.Scheduling
File: Enum.js

 Syntax

JavaScript  Copy Code

// enum
TaskStatus = {}

 Members

  Member name Description

Completed

Indicates a completed task.

Deferred

Indicates a deferred task.

InProgress

Indicates a task in progress.

NotStarted

Indicates that the task has not started yet.

WaitingOther

Indicates a task that depends on another task.

 Remarks

Values are assigned to the Task.status property.

 Example

The following code creates a new Task in 10 days with high priority, estimated duration of 5 hours (300 minutes) and adds it to the tasks list of a schedule. The task is in progress:

JavaScript  Copy Code

var p = MindFusion.Scheduling;
var task;

// create a task
task = new p.Task();
task.subject = "Math Test";
task.dueDate = p.DateTime.today().addDays(10);
task.details = "Learn well Molecular Biology by M. Robertson";
//the exam would probably take a total of up to 5 hours
task.estimatedDuration = 300;
task.priority = p.TaskPriority.High;
task.status = p.TaskStatus.InProgress;
//add it to the schedule.tasks collection
calendar.schedule.tasks.add(resource);

 See Also