TaskBlockService instead.@Deprecated
@Path(value="/task")
@Consumes(value={"application/xml","application/json"})
@Produces(value={"application/xml","application/json"})
public interface TaskService
| Modifier and Type | Method and Description |
|---|---|
void |
abort(java.lang.String taskId)
Deprecated.
Aborts an active task.
|
TaskWithSteps |
addPause(java.lang.String taskId,
int stepId)
Deprecated.
Add a pause step at the specified position.
|
void |
archive(java.lang.String taskId)
Deprecated.
Archive an executed task.
|
TaskState |
assign(java.lang.String taskId,
java.lang.String owner)
Deprecated.
Assigns a task to a different user.
|
void |
cancel(java.lang.String taskId)
Deprecated.
Cancels a stopped task.
|
java.util.List<TaskWithSteps> |
export(org.joda.time.LocalDate begin,
org.joda.time.LocalDate end)
Deprecated.
Searches for tasks with detailed step information.
|
java.util.List<TaskState> |
getAllCurrentTasks()
Deprecated.
Returns all active tasks for all users.
|
java.util.List<TaskState> |
getMyCurrentTasks()
Deprecated.
Returns the active tasks of the logged in user.
|
StepState |
getStep(java.lang.String taskId,
int stepId,
org.joda.time.DateTime ifModifiedSince)
Deprecated.
Retrieves information about a step.
|
TaskWithSteps |
getSteps(java.lang.String taskId)
Deprecated.
Returns a task containing step information.
|
TaskState |
getTask(java.lang.String taskId)
Deprecated.
Returns a task by ID.
|
TaskWithSteps |
moveStep(java.lang.String taskId,
int stepId,
int newPosition)
Deprecated.
Moves a step.
|
java.util.List<TaskState> |
query(org.joda.time.LocalDate begin,
org.joda.time.LocalDate end)
Deprecated.
Searches for archived tasks without step information.
|
void |
schedule(java.lang.String taskId,
org.joda.time.DateTime time)
Deprecated.
Schedules a task.
|
TaskWithSteps |
skip(java.lang.String taskId,
java.util.List<java.lang.Integer> stepIds)
Deprecated.
Indicates that one or more steps should be skipped.
|
void |
start(java.lang.String taskId)
Deprecated.
Starts a task.
|
void |
stop(java.lang.String taskId)
Deprecated.
Gracefully stops an active task.
|
TaskState |
takeover(java.lang.String taskId,
java.lang.String owner)
Deprecated.
Takeover a task from the owner.
|
TaskWithSteps |
unskip(java.lang.String taskId,
java.util.List<java.lang.Integer> stepIds)
Deprecated.
Indicates that one or more steps should no longer be skipped, but executed.
|
@GET @Path(value="current") java.util.List<TaskState> getMyCurrentTasks()
@GET @Path(value="current/all") java.util.List<TaskState> getAllCurrentTasks()
@GET
@Path(value="{taskid}")
TaskState getTask(@PathParam(value="taskid")
java.lang.String taskId)
taskId - the ID of the task@GET
@Path(value="{taskid}/step")
TaskWithSteps getSteps(@PathParam(value="taskid")
java.lang.String taskId)
taskId - the ID of the task@GET
@Path(value="{taskid}/step/{stepId}")
StepState getStep(@PathParam(value="taskid")
java.lang.String taskId,
@PathParam(value="stepId")
int stepId,
@HeaderParam(value="If-Modified-Since")
org.joda.time.DateTime ifModifiedSince)
taskId - the ID of the taskstepId - the ordinal number of the step, starting from 1ifModifiedSince - the if-modified-since date in RFC 1123 (RFC 822 with 4-digit years) date format.ifModifiedSince, a response with status code of 304 (Not Modified), otherwise returns a
response with a status code of 200 (OK) and XML containing a StepState.ifModifiedSince, the method throws a RuntimeException, otherwise
returns a StepState@POST
@Path(value="{taskid}/start")
void start(@PathParam(value="taskid")
java.lang.String taskId)
taskId - the ID of the task@POST
@Path(value="{taskid}/schedule")
void schedule(@PathParam(value="taskid")
java.lang.String taskId,
@QueryParam(value="time")
org.joda.time.DateTime time)
taskId - the ID of the tasktime - the local time (including the local timezone) when the task should be started by the server.@POST
@Path(value="{taskid}/stop")
void stop(@PathParam(value="taskid")
java.lang.String taskId)
taskId - the ID of the task@POST
@Path(value="{taskid}/abort")
void abort(@PathParam(value="taskid")
java.lang.String taskId)
taskId - the ID of the task@DELETE
@Path(value="{taskid}")
void cancel(@PathParam(value="taskid")
java.lang.String taskId)
taskId - the ID of the task@POST
@Path(value="{taskid}/archive")
void archive(@PathParam(value="taskid")
java.lang.String taskId)
taskId - the ID of the task@POST
@Path(value="{taskid}/skip")
TaskWithSteps skip(@PathParam(value="taskid")
java.lang.String taskId,
java.util.List<java.lang.Integer> stepIds)
taskId - the ID of the taskstepIds - the IDs of the steps to skip@POST
@Path(value="{taskid}/unskip")
TaskWithSteps unskip(@PathParam(value="taskid")
java.lang.String taskId,
java.util.List<java.lang.Integer> stepIds)
taskId - the ID of the taskstepIds - the IDs of the steps to unskip@POST
@Path(value="{taskid}/move/{stepId}/{position}")
TaskWithSteps moveStep(@PathParam(value="taskid")
java.lang.String taskId,
@PathParam(value="stepId")
int stepId,
@PathParam(value="position")
int newPosition)
taskId - the ID of the taskstepId - the current position of the step in the step list.newPosition - the new position of the step in the step list.@POST
@Path(value="{taskid}/pause/{stepId}")
TaskWithSteps addPause(@PathParam(value="taskid")
java.lang.String taskId,
@PathParam(value="stepId")
int stepId)
taskId - the ID of the taskstepId - the position of the step in the step list.@POST
@Path(value="{taskid}/assign/{owner}")
TaskState assign(@PathParam(value="taskid")
java.lang.String taskId,
@PathParam(value="owner")
java.lang.String owner)
taskId - the ID of the taskowner - the name of the user that will be the new owner of the task.@POST
@Path(value="{taskid}/takeover/{owner}")
TaskState takeover(@PathParam(value="taskid")
java.lang.String taskId,
@PathParam(value="owner")
java.lang.String owner)
assign(String, String) method, which allows you to re-assign
a task.taskId - the ID of the task to take overowner - the current owner of the task@GET @Path(value="query") java.util.List<TaskState> query(@QueryParam(value="begindate") org.joda.time.LocalDate begin, @QueryParam(value="enddate") org.joda.time.LocalDate end)
begin - The first day we want to see tasks from, or null for no such limit.end - The last day we want to see tasks from, or null for no such limit.@GET @Path(value="export") java.util.List<TaskWithSteps> export(@QueryParam(value="begindate") org.joda.time.LocalDate begin, @QueryParam(value="enddate") org.joda.time.LocalDate end)
begin - The first day we want to see tasks from, or null for no such limit.end - The last day we want to see tasks from, or null for no such limit.