Function prototype | task_get (session, task, context) |
---|---|
API Version | All |
API Version | Changes respect to previous version |
---|---|
2.7.25 | Calculation of previous and next TASKs have been removed. See Changes in version 2.7.25 for more details |
IMPORTANT: Remember to call session_init() indicating the appropriate API Version |
Returns all information about a TASK OBJECT. |
Input parameters: |
| |
Output parameters: |
| |
Request sample: | task_get (“LCAAAAAAAAA”, task_id{@source}) | |
Response sample: |
|
ERROR CODE | |
---|---|
INVALID_TOKEN | The session token provided is not valid |
INSUFFICIENT_PRIVILEGES | The session user does not have the necessary privileges to get information about the TASK |
TASK.NOT_FOUND | The TASK reference provided in parameter task does not correspond to an existing TASK |
TASK.NOT_AVAILABLE | The TASK reference provided in parameter task does not corresponds to a TASK that is no longer available (this generally means that the TASK status is cancelled, and the active user cannot access cancelled TASKs) |
Calculation of previous and next TASK were removed in version 2.7.25.
In previous versions there existed the nodes <prev> and <next> as follows:
<?xml version="1.0" encoding="UTF-8"?> <result> <task> ... <refs> ... <next> <ref>40882</ref> <status>DONE</status> </next> <prev> <ref>40884</ref> <status>DONE</status> </prev> </refs> |