TaskBlockService
instead.@Deprecated
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 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.
|
java.util.List<TaskState> getMyCurrentTasks()
java.util.List<TaskState> getAllCurrentTasks()
TaskState getTask(java.lang.String taskId)
taskId
- the ID of the taskTaskWithSteps getSteps(java.lang.String taskId)
taskId
- the ID of the taskStepState getStep(java.lang.String taskId, 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
void start(java.lang.String taskId)
taskId
- the ID of the taskvoid schedule(java.lang.String taskId, 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.void stop(java.lang.String taskId)
taskId
- the ID of the taskvoid abort(java.lang.String taskId)
taskId
- the ID of the taskvoid cancel(java.lang.String taskId)
taskId
- the ID of the taskvoid archive(java.lang.String taskId)
taskId
- the ID of the taskTaskWithSteps skip(java.lang.String taskId, java.util.List<java.lang.Integer> stepIds)
taskId
- the ID of the taskstepIds
- the IDs of the steps to skipTaskWithSteps unskip(java.lang.String taskId, java.util.List<java.lang.Integer> stepIds)
taskId
- the ID of the taskstepIds
- the IDs of the steps to unskipTaskWithSteps moveStep(java.lang.String taskId, int stepId, 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.TaskWithSteps addPause(java.lang.String taskId, int stepId)
taskId
- the ID of the taskstepId
- the position of the step in the step list.TaskState assign(java.lang.String taskId, java.lang.String owner)
taskId
- the ID of the taskowner
- the name of the user that will be the new owner of the task.TaskState takeover(java.lang.String taskId, 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 taskjava.util.List<TaskState> query(org.joda.time.LocalDate begin, 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.java.util.List<TaskWithSteps> export(org.joda.time.LocalDate begin, 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.