Package org.bonitasoft.web.client.api
Interface TaskApi
-
- All Superinterfaces:
ApiClient.Api
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") 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 IDApiResponse<Task>getTaskByIdWithHttpInfo(String id)Finds the Task by ID Similar togetTaskByIdbut it also returns the http response headers .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`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.ApiResponse<List<Task>>searchTasksWithHttpInfo(Integer p, Integer c, List<String> f, String o)Finds Tasks Similar tosearchTasksbut it also returns the http response headers .ApiResponse<List<Task>>searchTasksWithHttpInfo(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 othersearchTasksthat receives the query parameters as a map, but this one also exposes the Http response headersvoidupdateTaskById(String id, Map<String,Object> requestBody)Update the Task by ID Update the Task for the given IDApiResponse<Void>updateTaskByIdWithHttpInfo(String id, Map<String,Object> requestBody)Update the Task by ID Similar toupdateTaskByIdbut it also returns the http response headers .
-
-
-
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
-
getTaskByIdWithHttpInfo
ApiResponse<Task> getTaskByIdWithHttpInfo(String id)
Finds the Task by ID Similar togetTaskByIdbut it also returns the http response headers . Returns the single Task for the given ID- Parameters:
id- ID of the Task to return (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
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>
-
searchTasksWithHttpInfo
ApiResponse<List<Task>> searchTasksWithHttpInfo(Integer p, Integer c, List<String> f, String o)
Finds Tasks Similar tosearchTasksbut it also returns the http response headers . 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:
- A ApiResponse that wraps the response boyd and the http headers.
-
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>
-
searchTasksWithHttpInfo
ApiResponse<List<Task>> searchTasksWithHttpInfo(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 othersearchTasksthat receives the query parameters as a map, but this one also exposes the Http response headers- 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)
-
updateTaskByIdWithHttpInfo
ApiResponse<Void> updateTaskByIdWithHttpInfo(String id, Map<String,Object> requestBody)
Update the Task by ID Similar toupdateTaskByIdbut it also returns the http response headers . 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)
-
-