Class NSBatchTaskInfo

Contains information about one batch task.

Constructors

NSBatchTaskInfo()

Initializes a new instance of the NSBatchTaskInfo class.

Declaration

NSBatchTaskInfo

Methods

GetAssociateId()

Declaration

Integer GetAssociateId()

Examples

NSBatchTaskInfo thing;
Integer associateId = thing.GetAssociateId();

Returns

Type Description
Integer Task owner. If it is a System task, AssociateId = 0.

GetContext()

Declaration

String GetContext()

Examples

NSBatchTaskInfo thing;
String context = thing.GetContext();

Returns

Type Description
String Context for the executing task.

GetCreated()

Declaration

DateTime GetCreated()

Examples

NSBatchTaskInfo thing;
DateTime created = thing.GetCreated();

Returns

Type Description
DateTime Task creation time.

GetDatabaseSerialNumber()

Declaration

String GetDatabaseSerialNumber()

Examples

NSBatchTaskInfo thing;
String databaseSerialNumber = thing.GetDatabaseSerialNumber();

Returns

Type Description
String Serial number of the database the task is to run on.

GetDescription()

Declaration

String GetDescription()

Examples

NSBatchTaskInfo thing;
String description = thing.GetDescription();

Returns

Type Description
String Description of the task.

GetDetailsRecord()

Declaration

Integer GetDetailsRecord()

Examples

NSBatchTaskInfo thing;
Integer detailsRecord = thing.GetDetailsRecord();

Returns

Type Description
Integer Record ID of a row in the DetailsTable containing more info about the task.

GetDetailsTable()

Declaration

Integer GetDetailsTable()

Examples

NSBatchTaskInfo thing;
Integer detailsTable = thing.GetDetailsTable();

Returns

Type Description
Integer ID of table with more information about the task.

GetId()

Declaration

Integer GetId()

Examples

NSBatchTaskInfo thing;
Integer id = thing.GetId();

Returns

Type Description
Integer ID of the task.

GetIsInternalTask()

Declaration

Bool GetIsInternalTask()

Examples

NSBatchTaskInfo thing;
Bool isInternalTask = thing.GetIsInternalTask();

Returns

Type Description
Bool If true, this task will not add a trace to the database.

GetIsSystemTask()

Declaration

Bool GetIsSystemTask()

Examples

NSBatchTaskInfo thing;
Bool isSystemTask = thing.GetIsSystemTask();

Returns

Type Description
Bool If true, the task is not initiated by an associate.

GetLastStarted()

Declaration

DateTime GetLastStarted()

Examples

NSBatchTaskInfo thing;
DateTime lastStarted = thing.GetLastStarted();

Returns

Type Description
DateTime When was the task last started.

GetName()

Declaration

String GetName()

Examples

NSBatchTaskInfo thing;
String name = thing.GetName();

Returns

Type Description
String Name of the task.

GetParameterObject()

Declaration

Map GetParameterObject()

Examples

NSBatchTaskInfo thing;
Map parameterObject = thing.GetParameterObject();

Returns

Type Description
Map ParameterObject will be serialized to a binary blob and saved in the BinaryObject table. The link to the BinaryObject will be set using DetailsTable and DetailsRecord.

GetProgressDescription()

Declaration

String GetProgressDescription()

Examples

NSBatchTaskInfo thing;
String progressDescription = thing.GetProgressDescription();

Returns

Type Description
String Descriptive text for the current stage.

GetProgressPercent()

Declaration

Integer GetProgressPercent()

Examples

NSBatchTaskInfo thing;
Integer progressPercent = thing.GetProgressPercent();

Returns

Type Description
Integer Task progress, in percent of estimated total.

GetRequest()

Declaration

String GetRequest()

Examples

NSBatchTaskInfo thing;
String request = thing.GetRequest();

Returns

Type Description
String Maps to the request field in the batchtask table.

GetResponse()

Maps to the response field in the batchtask table.

Declaration

String GetResponse()

Examples

NSBatchTaskInfo thing;
String response = thing.GetResponse();

Returns

Type Description
String

GetResult()

Maps to the result field in the batchtask table.

Declaration

String GetResult()

Examples

NSBatchTaskInfo thing;
String result = thing.GetResult();

Returns

Type Description
String

GetStartCount()

Maps to the startcount field in the batchtask table.

Declaration

Integer GetStartCount()

Examples

NSBatchTaskInfo thing;
Integer startCount = thing.GetStartCount();

Returns

Type Description
Integer

GetState()

BatchTaskState of the task.

Declaration

Integer GetState()

Examples

NSBatchTaskInfo thing;
Integer state = thing.GetState();

Returns

Type Description
Integer

SetAssociateId(Integer)

Task owner. If it is a System task, AssociateId = 0.

Declaration

Void SetAssociateId(Integer associateId)

Examples

NSBatchTaskInfo thing;
Integer associateId;
thing.SetAssociateId(associateId);

Parameters

Type Name Description
Integer associateId

Returns

Type Description
Void

SetContext(String)

Context for the executing task.

Declaration

Void SetContext(String context)

Examples

NSBatchTaskInfo thing;
String context;
thing.SetContext(context);

Parameters

Type Name Description
String context

Returns

Type Description
Void

SetCreated(DateTime)

Declaration

Void SetCreated(DateTime created)

Examples

NSBatchTaskInfo thing;
DateTime created;
thing.SetCreated(created);

Parameters

Type Name Description
DateTime created Task creation time.

Returns

Type Description
Void

SetDatabaseSerialNumber(String)

Serial number of the database the task is to run on.

Declaration

Void SetDatabaseSerialNumber(String databaseSerialNumber)

Examples

NSBatchTaskInfo thing;
String databaseSerialNumber;
thing.SetDatabaseSerialNumber(databaseSerialNumber);

Parameters

Type Name Description
String databaseSerialNumber

Returns

Type Description
Void

SetDescription(String)

Description of the task.

Declaration

Void SetDescription(String description)

Examples

NSBatchTaskInfo thing;
String description;
thing.SetDescription(description);

Parameters

Type Name Description
String description

Returns

Type Description
Void

SetDetailsRecord(Integer)

Record ID of a row in the DetailsTable containing more info about the task.

Declaration

Void SetDetailsRecord(Integer detailsRecord)

Examples

NSBatchTaskInfo thing;
Integer detailsRecord;
thing.SetDetailsRecord(detailsRecord);

Parameters

Type Name Description
Integer detailsRecord

Returns

Type Description
Void

SetDetailsTable(Integer)

ID of table with more information about the task.

Declaration

Void SetDetailsTable(Integer detailsTable)

Examples

NSBatchTaskInfo thing;
Integer detailsTable;
thing.SetDetailsTable(detailsTable);

Parameters

Type Name Description
Integer detailsTable

Returns

Type Description
Void

SetId(Integer)

ID of the task.

Declaration

Void SetId(Integer id)

Examples

NSBatchTaskInfo thing;
Integer id;
thing.SetId(id);

Parameters

Type Name Description
Integer id

Returns

Type Description
Void

SetIsInternalTask(Bool)

If IsInternalTask is true, this task will not add a trace to the database.

Declaration

Void SetIsInternalTask(Bool isInternalTask)

Examples

NSBatchTaskInfo thing;
Bool isInternalTask;
thing.SetIsInternalTask(isInternalTask);

Parameters

Type Name Description
Bool isInternalTask

Returns

Type Description
Void

SetIsSystemTask(Bool)

If IsSystemTask is true, the task is not initiated by an associate.

Declaration

Void SetIsSystemTask(Bool isSystemTask)

Examples

NSBatchTaskInfo thing;
Bool isSystemTask;
thing.SetIsSystemTask(isSystemTask);

Parameters

Type Name Description
Bool isSystemTask

Returns

Type Description
Void

SetLastStarted(DateTime)

Declaration

Void SetLastStarted(DateTime lastStarted)

Examples

NSBatchTaskInfo thing;
DateTime lastStarted;
thing.SetLastStarted(lastStarted);

Parameters

Type Name Description
DateTime lastStarted When was the task last started.

Returns

Type Description
Void

SetName(String)

Name of the task.

Declaration

Void SetName(String name)

Examples

NSBatchTaskInfo thing;
String name;
thing.SetName(name);

Parameters

Type Name Description
String name

Returns

Type Description
Void

SetParameterObject(Map)

Serializes a Map to a binary blob and saves it in the BinaryObject table. The link to the BinaryObject will be set using DetailsTable and DetailsRecord.

Declaration

Void SetParameterObject(Map parameterObject)

Examples

NSBatchTaskInfo thing;
Map parameterObject;
thing.SetParameterObject(parameterObject);

Parameters

Type Name Description
Map parameterObject

Returns

Type Description
Void

SetProgressDescription(String)

Descriptive text for the current stage

Declaration

Void SetProgressDescription(String progressDescription)

Examples

NSBatchTaskInfo thing;
String progressDescription;
thing.SetProgressDescription(progressDescription);

Parameters

Type Name Description
String progressDescription

Returns

Type Description
Void

SetProgressPercent(Integer)

Task progress, in percent of estimated total

Declaration

Void SetProgressPercent(Integer progressPercent)

Examples

NSBatchTaskInfo thing;
Integer progressPercent;
thing.SetProgressPercent(progressPercent);

Parameters

Type Name Description
Integer progressPercent

Returns

Type Description
Void

SetRequest(String)

Maps to the request field in the batchtask table.

Declaration

Void SetRequest(String request)

Examples

NSBatchTaskInfo thing;
String request;
thing.SetRequest(request);

Parameters

Type Name Description
String request

Returns

Type Description
Void

SetResponse(String)

Maps to the response field in the batchtask table.

Declaration

Void SetResponse(String response)

Examples

NSBatchTaskInfo thing;
String response;
thing.SetResponse(response);

Parameters

Type Name Description
String response

Returns

Type Description
Void

SetResult(String)

Maps to the result field in the batchtask table.

Declaration

Void SetResult(String result)

Examples

NSBatchTaskInfo thing;
String result;
thing.SetResult(result);

Parameters

Type Name Description
String result

Returns

Type Description
Void

SetStartCount(Integer)

Maps to the startcount field in the batchtask table.

Declaration

Void SetStartCount(Integer startCount)

Examples

NSBatchTaskInfo thing;
Integer startCount;
thing.SetStartCount(startCount);

Parameters

Type Name Description
Integer startCount

Returns

Type Description
Void

SetState(Integer)

BatchTaskState of the task.

Declaration

Void SetState(Integer state)

Examples

NSBatchTaskInfo thing;
Integer state;
thing.SetState(state);

Parameters

Type Name Description
Integer state

Returns

Type Description
Void