Package org.camunda.bpm.engine.rest
Interface TaskRestService
-
- All Known Implementing Classes:
TaskRestServiceImpl
@Produces("application/json") public interface TaskRestService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createTask(TaskDto taskDto)
TaskResource
getTask(String id)
TaskReportResource
getTaskReportResource()
Object
getTasks(javax.ws.rs.core.Request request, javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
CountResultDto
getTasksCount(javax.ws.rs.core.UriInfo uriInfo)
List<TaskDto>
queryTasks(TaskQueryDto query, Integer firstResult, 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 String PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTask
@Path("/{id}") TaskResource getTask(@PathParam("id") String id)
-
getTasks
@GET @Produces({"application/json","application/hal+json"}) Object getTasks(@Context javax.ws.rs.core.Request request, @Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam("firstResult") Integer firstResult, @QueryParam("maxResults") Integer maxResults)
-
queryTasks
@POST @Consumes("application/json") @Produces("application/json") List<TaskDto> queryTasks(TaskQueryDto query, @QueryParam("firstResult") Integer firstResult, @QueryParam("maxResults") 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()
-
-