Package org.camunda.bpm.engine.rest
Interface TaskRestService
-
- All Known Implementing Classes:
TaskRestServiceImpl
@Produces("application/json") public interface TaskRestService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PATH
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createTask(TaskDto taskDto)
TaskResource
getTask(java.lang.String id)
TaskReportResource
getTaskReportResource()
java.lang.Object
getTasks(javax.ws.rs.core.Request request, javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer firstResult, java.lang.Integer maxResults)
CountResultDto
getTasksCount(javax.ws.rs.core.UriInfo uriInfo)
java.util.List<TaskDto>
queryTasks(TaskQueryDto query, java.lang.Integer firstResult, java.lang.Integer maxResults)
Expects the same parameters asTaskRestService#getTasks(UriInfo, Integer, Integer)
(as JSON message body) and allows more than one variable check.CountResultDto
queryTasksCount(TaskQueryDto query)
-
-
-
Field Detail
-
PATH
static final java.lang.String PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTask
@Path("/{id}") TaskResource getTask(@PathParam("id") java.lang.String id)
-
getTasks
@GET @Produces({"application/json","application/hal+json"}) java.lang.Object getTasks(@Context javax.ws.rs.core.Request request, @Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam("firstResult") java.lang.Integer firstResult, @QueryParam("maxResults") java.lang.Integer maxResults)
-
queryTasks
@POST @Consumes("application/json") @Produces("application/json") java.util.List<TaskDto> queryTasks(TaskQueryDto query, @QueryParam("firstResult") java.lang.Integer firstResult, @QueryParam("maxResults") java.lang.Integer maxResults)
Expects the same parameters asTaskRestService#getTasks(UriInfo, Integer, Integer)
(as JSON message body) and allows more than one variable check.- Parameters:
query
-firstResult
-maxResults
-- Returns:
-
getTasksCount
@GET @Path("/count") @Produces("application/json") CountResultDto getTasksCount(@Context javax.ws.rs.core.UriInfo uriInfo)
-
queryTasksCount
@POST @Path("/count") @Consumes("application/json") @Produces("application/json") CountResultDto queryTasksCount(TaskQueryDto query)
-
createTask
@POST @Path("/create") @Consumes("application/json") void createTask(TaskDto taskDto)
-
getTaskReportResource
@Path("/report") TaskReportResource getTaskReportResource()
-
-