Package org.bonitasoft.web.client.api
Interface TaskApi
-
- All Superinterfaces:
ApiClient.Api
public interface TaskApi extends ApiClient.Api
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTaskApi.SearchTasksQueryParamsA convenience class for generating query parameters for thesearchTasksmethod in a fluent style.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TaskgetTaskById(String id)Finds the Task by ID Returns the single Task for the given IDList<Task>searchTasks(Integer p, Integer c, List<String> f, String o)Finds Tasks Finds Tasks with pagination params and filters - can order on `caseId`, `processId`, `state`, `type`, `supervisor_id`, `last_update_date` - can filter on `caseId`, `processId`, `state`, `type`, `supervisor_id`, `last_update_date`List<Task>searchTasks(Map<String,Object> queryParams)Finds Tasks Finds Tasks with pagination params and filters - can order on `caseId`, `processId`, `state`, `type`, `supervisor_id`, `last_update_date` - can filter on `caseId`, `processId`, `state`, `type`, `supervisor_id`, `last_update_date` Note, this is equivalent to the othersearchTasksmethod, but with the query parameters collected into a single Map parameter.voidupdateTaskById(String id, Map<String,Object> requestBody)Update the Task by ID Update the Task for the given ID
-
-
-
Method Detail
-
getTaskById
Task getTaskById(String id)
Finds the Task by ID Returns the single Task for the given ID- Parameters:
id- ID of the Task to return (required)- Returns:
- Task
-
searchTasks
List<Task> searchTasks(Integer p, Integer c, List<String> f, String o)
Finds Tasks Finds Tasks with pagination params and filters - can order on `caseId`, `processId`, `state`, `type`, `supervisor_id`, `last_update_date` - can filter on `caseId`, `processId`, `state`, `type`, `supervisor_id`, `last_update_date`- Parameters:
p- index of the page to display (required)c- maximum number of elements to retrieve (required)f- can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)o- can order on attributes (optional)- Returns:
- List<Task>
-
searchTasks
List<Task> searchTasks(Map<String,Object> queryParams)
Finds Tasks Finds Tasks with pagination params and filters - can order on `caseId`, `processId`, `state`, `type`, `supervisor_id`, `last_update_date` - can filter on `caseId`, `processId`, `state`, `type`, `supervisor_id`, `last_update_date` Note, this is equivalent to the othersearchTasksmethod, but with the query parameters collected into a single Map parameter. This is convenient for services with optional query parameters, especially when used with theTaskApi.SearchTasksQueryParamsclass that allows for building up this map in a fluent style.- Parameters:
queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- p - index of the page to display (required)
- c - maximum number of elements to retrieve (required)
- f - can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)
- o - can order on attributes (optional)
- Returns:
- List<Task>
-
updateTaskById
void updateTaskById(String id, Map<String,Object> requestBody)
Update the Task by ID Update the Task for the given ID- Parameters:
id- ID of the Task to return (required)requestBody- Task fields to update (forbidden fields are : `caseId`, `processId`, `name`, `executedBy`, `type`, `id`, `reached_state_date`, `last_update_date`) (required)
-
-