GetTaskDetailByID returns detail of task with given id
(ID int)
| 168 | |
| 169 | // GetTaskDetailByID returns detail of task with given id |
| 170 | func (list *List) GetTaskDetailByID(ID int) (interface{}, error) { |
| 171 | task, err := list.GetTaskByID(ID) |
| 172 | |
| 173 | if err != nil { |
| 174 | return nil, err |
| 175 | } |
| 176 | |
| 177 | detail := task.detail.Load() |
| 178 | if detail == nil { |
| 179 | return struct{}{}, nil |
| 180 | } |
| 181 | |
| 182 | return detail, nil |
| 183 | } |
| 184 | |
| 185 | // GetTaskReturnValueByID returns process return value of task with given id |
| 186 | func (list *List) GetTaskReturnValueByID(ID int) (*ProcessReturnValue, error) { |