Package org.bonitasoft.web.client.api
Interface UserTaskApi
- All Superinterfaces:
ApiClient.Api
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.12.0")
public interface UserTaskApi
extends ApiClient.Api
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA convenience class for generating query parameters for theexecuteUserTaskmethod in a fluent style.static classA convenience class for generating query parameters for thesearchUserTasksmethod in a fluent style. -
Method Summary
Modifier and TypeMethodDescriptionvoidExecute the UserTask Execute the UserTask.voidexecuteUserTask(String id, Map<String, Object> body, UserTaskApi.ExecuteUserTaskQueryParams queryParams) Execute the UserTask Execute the UserTask.Execute the UserTask Similar toexecuteUserTaskbut it also returns the http response headers .executeUserTaskWithHttpInfo(String id, Map<String, Object> body, UserTaskApi.ExecuteUserTaskQueryParams queryParams) Execute the UserTask Execute the UserTask.Finds the Context by UserTask ID Returns the Context for the given UserTask IDFinds the Context by UserTask ID Similar togetContextByUserTaskIdbut it also returns the http response headers .Finds the Contract by UserTask ID Returns the Contract for the given UserTask IDFinds the Contract by UserTask ID Similar togetContractByUserTaskIdbut it also returns the http response headers .Finds the UserTask by ID Returns the single UserTask for the given IDFinds the UserTask by ID Similar togetUserTaskByIdbut it also returns the http response headers .Finds UserTasks Finds UserTasks with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName`searchUserTasks(UserTaskApi.SearchUserTasksQueryParams queryParams) Finds UserTasks Finds UserTasks with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName` Note, this is equivalent to the othersearchUserTasksmethod, but with the query parameters collected into a single Map parameter.Finds UserTasks Similar tosearchUserTasksbut it also returns the http response headers .Finds UserTasks Finds UserTasks with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName` Note, this is equivalent to the othersearchUserTasksthat receives the query parameters as a map, but this one also exposes the Http response headersvoidupdateUserTaskById(String id, UserTaskUpdateRequest userTaskUpdateRequest) Update the UserTask by ID Update the UserTask for the given ID.updateUserTaskByIdWithHttpInfo(String id, UserTaskUpdateRequest userTaskUpdateRequest) Update the UserTask by ID Similar toupdateUserTaskByIdbut it also returns the http response headers .
-
Method Details
-
executeUserTask
Execute the UserTask Execute the UserTask. In order to execute a task, the task contract values have to be provided.- Parameters:
id- ID of the UserTask to execute (required)body- A JSON object matching task contract. Execute a task providing correct contract values. (required)assign- if true, assign the task to the current user and execute the task (optional)
-
executeUserTaskWithHttpInfo
Execute the UserTask Similar toexecuteUserTaskbut it also returns the http response headers . Execute the UserTask. In order to execute a task, the task contract values have to be provided.- Parameters:
id- ID of the UserTask to execute (required)body- A JSON object matching task contract. Execute a task providing correct contract values. (required)assign- if true, assign the task to the current user and execute the task (optional)
-
executeUserTask
void executeUserTask(String id, Map<String, Object> body, UserTaskApi.ExecuteUserTaskQueryParams queryParams) Execute the UserTask Execute the UserTask. In order to execute a task, the task contract values have to be provided. Note, this is equivalent to the otherexecuteUserTaskmethod, but with the query parameters collected into a single Map parameter. This is convenient for services with optional query parameters, especially when used with theUserTaskApi.ExecuteUserTaskQueryParamsclass that allows for building up this map in a fluent style.- Parameters:
id- ID of the UserTask to execute (required)body- A JSON object matching task contract. Execute a task providing correct contract values. (required)queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- assign - if true, assign the task to the current user and execute the task (optional)
-
executeUserTaskWithHttpInfo
ApiResponse<Void> executeUserTaskWithHttpInfo(String id, Map<String, Object> body, UserTaskApi.ExecuteUserTaskQueryParams queryParams) Execute the UserTask Execute the UserTask. In order to execute a task, the task contract values have to be provided. Note, this is equivalent to the otherexecuteUserTaskthat receives the query parameters as a map, but this one also exposes the Http response headers- Parameters:
id- ID of the UserTask to execute (required)body- A JSON object matching task contract. Execute a task providing correct contract values. (required)queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- assign - if true, assign the task to the current user and execute the task (optional)
-
getContextByUserTaskId
Finds the Context by UserTask ID Returns the Context for the given UserTask ID- Parameters:
id- ID of the UserTask that has the Context to return (required)- Returns:
- Map<String, Object>
-
getContextByUserTaskIdWithHttpInfo
Finds the Context by UserTask ID Similar togetContextByUserTaskIdbut it also returns the http response headers . Returns the Context for the given UserTask ID- Parameters:
id- ID of the UserTask that has the Context to return (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
getContractByUserTaskId
Finds the Contract by UserTask ID Returns the Contract for the given UserTask ID- Parameters:
id- ID of the UserTask that has the Contract to return (required)- Returns:
- Contract
-
getContractByUserTaskIdWithHttpInfo
Finds the Contract by UserTask ID Similar togetContractByUserTaskIdbut it also returns the http response headers . Returns the Contract for the given UserTask ID- Parameters:
id- ID of the UserTask that has the Contract to return (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
getUserTaskById
Finds the UserTask by ID Returns the single UserTask for the given ID- Parameters:
id- ID of the UserTask to return (required)- Returns:
- UserTask
-
getUserTaskByIdWithHttpInfo
Finds the UserTask by ID Similar togetUserTaskByIdbut it also returns the http response headers . Returns the single UserTask for the given ID- Parameters:
id- ID of the UserTask to return (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
searchUserTasks
Finds UserTasks Finds UserTasks with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName`- 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)s- can search on attributes (optional)- Returns:
- List<UserTask>
-
searchUserTasksWithHttpInfo
ApiResponse<List<UserTask>> searchUserTasksWithHttpInfo(Integer p, Integer c, List<String> f, String o, String s) Finds UserTasks Similar tosearchUserTasksbut it also returns the http response headers . Finds UserTasks with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName`- 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)s- can search on attributes (optional)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
searchUserTasks
Finds UserTasks Finds UserTasks with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName` Note, this is equivalent to the othersearchUserTasksmethod, but with the query parameters collected into a single Map parameter. This is convenient for services with optional query parameters, especially when used with theUserTaskApi.SearchUserTasksQueryParamsclass 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)
- s - can search on attributes (optional)
- Returns:
- List<UserTask>
-
searchUserTasksWithHttpInfo
ApiResponse<List<UserTask>> searchUserTasksWithHttpInfo(UserTaskApi.SearchUserTasksQueryParams queryParams) Finds UserTasks Finds UserTasks with pagination params and filters - can order on `id` - can search on `displayName` - can filter on `displayName` Note, this is equivalent to the othersearchUserTasksthat 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)
- s - can search on attributes (optional)
- Returns:
- List<UserTask>
-
updateUserTaskById
Update the UserTask by ID Update the UserTask for the given ID. Fields that can be updated are `assigned_id` and `state`. The only value that can be set for the state is `skipped`. You only need to specify the fields that are to be updated.- Parameters:
id- ID of the UserTask to return (required)userTaskUpdateRequest- Partial UserTask description (required)
-
updateUserTaskByIdWithHttpInfo
ApiResponse<Void> updateUserTaskByIdWithHttpInfo(String id, UserTaskUpdateRequest userTaskUpdateRequest) Update the UserTask by ID Similar toupdateUserTaskByIdbut it also returns the http response headers . Update the UserTask for the given ID. Fields that can be updated are `assigned_id` and `state`. The only value that can be set for the state is `skipped`. You only need to specify the fields that are to be updated.- Parameters:
id- ID of the UserTask to return (required)userTaskUpdateRequest- Partial UserTask description (required)
-