Task class
The Task class represents a discrete activity performed by the system. Tasks may be synchronous or asynchronous and are often linked to other tasks.
Task class APIs
The following tables list the basic APIs, operation APIs, and relationship APIs for the Task class.
Basic APIs
Name | HTTP | URI | Description |
---|---|---|---|
get | GET | Retrieves a Task object. |
Operation APIs
Name | HTTP | URI | Description |
---|---|---|---|
completeCallout | POST | Complete the specified callout |
Relationship APIs
Name | HTTP | URI | Description |
---|---|---|---|
relation | GET | Retrieves the errors relationship. | |
relation | GET | Retrieves the provider relationship. | |
relation | GET | Retrieves the tags relationship. |
Task class relationships and attributes
The following tables list the relationships and attributes of the Task class.
Relationships
Name | Type | Multi- | Description |
---|---|---|---|
errors | 0..* | Errors associated with the task | |
cloudClass | 1 | Fully-qualified name of the class to which the object belongs | |
provider | 1 | Provider that created the object | |
tags | 0..* | Tags associated with the object |
Attributes
Name | Type | Multi- | Description |
---|---|---|---|
className | String | 0..1 | Name of the class |
completionTime | String | 0..1 | Time the task was completed |
creationTime | String | 0..1 | Time the task was created |
isCallout | Boolean | 0..1 | Indicates whether the task is a callout |
isError | Boolean | 0..1 | Indicates whether the task generated an error |
isSuccess | Boolean | 0..1 | Indicates whether the task was successful |
isWarning | Boolean | 0..1 | Indicates whether the task generated a warning |
objectName | String | 0..1 | Name of the object |
objectUUID | String | 0..1 | Identifier for the object |
operationName | String | 0..1 | Name of the operation |
parentTaskInternalUUID | String | 0..1 | Identifier of the parent task |
results | String | 0..* | Task result |
taskInternalUUID | String | 0..1 | Task identifier |
taskProgress | Float | 0..1 | Task progress indicator |
taskResultURI | String | 0..1 | URI of the task result. Issue a GET request on this URI to retrieve the task result. |
taskState | 0..1 | Task state | |
taskStatusURI | String | 0..1 | URI of the task status. Issue a GET request on this URI to retrieve the task status. |
taskSubState | String | 0..1 | Task sub-state |
transactionID | String | 0..1 | Transaction identifier |
description | String | 0..1 | Text that describes the object |
guid | String | 1 | Globally unique identifier for the object |
labels | String | 0..* |
|
modifiedDate | 0..1 | Date the Cloudobject was modified | |
name | String | 1 | Human-readable name of the object |