@Path(value="activiti") public interface ActivitiResource extends AuthenticatedResource
Modifier and Type | Method and Description |
---|---|
GenericResponse |
assign(String id,
PageTask pageTask)
Assign a page to the given task
|
GenericResponse |
delete(String id)
Delete all assignments for a given task
|
PageTaskListResponse |
get(String id)
Get the pages assigned to the given task
|
ProcessQueueResponse |
processQueue(List<String> objTypes,
List<String> states,
String sortBy,
String sortOrder)
Get the entries in the process queue.
|
GenericResponse |
status()
Get the activiti integration status
|
setSessionId
@GET @Path(value="/task/{id}") PageTaskListResponse get(@PathParam(value="id") String id) throws Exception
id
- Task IDException
@POST @Path(value="/task/{id}") GenericResponse assign(@PathParam(value="id") String id, PageTask pageTask) throws Exception
id
- Task IDpageTask
- Assigned page and event infoException
@DELETE @Path(value="/task/{id}") GenericResponse delete(@PathParam(value="id") String id) throws Exception
id
- Task IDException
@GET @Path(value="/processqueue") ProcessQueueResponse processQueue(@QueryParam(value="objtypes") List<String> objTypes, @QueryParam(value="states") List<String> states, @QueryParam(value="sortby") @DefaultValue(value="") String sortBy, @QueryParam(value="sortorder") @DefaultValue(value="asc") String sortOrder) throws Exception
objTypes
- For which object types to load the process queues,
or an empty list to retrieve entries for all types (default).states
- Only entries with one of these states will be returned
or an empty list to retrieve entries of all states (default).sortBy
- The field to sort the results by, or an empty string
to disable sorting.sortOrder
- Whether to sort asc
ending or
desc
ending (anything other than desc
will be interpreted as asc
Exception
@GET @Path(value="/status") GenericResponse status() throws Exception
Exception
Copyright © 2024 Gentics Software. All rights reserved.