task.TaskType

Note:

JavaScript does not include an enumeration type. The SuiteScript 2.x documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. In this object, each key points to a read-only string value.

Enum Description

Holds the string values for the types of task objects you can create using task.create(options).

Module

N/task Module

Sibling Module Members

N/task Module Members

Since

2015.2

Values

Value

CSV_IMPORT

ENTITY_DEDUPLICATION

MAP_REDUCE

QUERY

RECORD_ACTION

SCHEDULED_SCRIPT

SEARCH

SUITE_QL

WORKFLOW_TRIGGER

Important:

Ensure that you are familiar with script execution time limits when creating tasks. Each server script type is limited to an amount of time it can run on a single execution. For more information, see the time limit chart on Script Execution Time Limits.

Script Type

Time Limit (in Seconds)

Bundle Installation Scripts (SuiteScript 1.0)

SuiteScript 2.x Bundle Installation Script Type

3,600

Client Scripts (SuiteScript 1.0)

SuiteScript 2.x Client Script Type

300

Custom record action

300

Map/reduce (input stage)

SuiteScript 2.x Map/Reduce Script Type

3,600

Map/reduce (map stage)

SuiteScript 2.x Map/Reduce Script Type

300

Map/reduce (reduce stage)

SuiteScript 2.x Map/Reduce Script Type

900

Map/reduce (summarize stage)

SuiteScript 2.x Map/Reduce Script Type

3,600

Mass Update Scripts (SuiteScript 1.0)

SuiteScript 2.x Mass Update Script Type

300

Portlet Scripts (SuiteScript 1.0)

SuiteScript 2.x Portlet Script Type

300

RESTlets (SuiteScript 1.0)

SuiteScript 2.x RESTlet Script Type

300

SuiteScript 2.x SDF Installation Script Type

3,600

Single-page application (SPA)

300

Scheduled Scripts (SuiteScript 1.0)

SuiteScript 2.x Scheduled Script Type

3,600

Suitelets (SuiteScript 1.0)

SuiteScript 2.x Suitelet Script Type

300

SuiteScript Server Pages (SSP) application

300

User Event Scripts (SuiteScript 1.0)

SuiteScript 2.x User Event Script Type

300

Workflow Action Scripts (SuiteScript 1.0)

SuiteScript 2.x Workflow Action Script Type

300

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/task Module Script Samples.

            // Add additional code ...
var mrTask = task.create({
    taskType: task.TaskType.MAP_REDUCE
});
...
// Add additional code 

          

Related Topics

General Notices