public interface TaskBlockService
Modifier and Type | Method and Description |
---|---|
void |
abort(java.lang.String taskId)
Aborts an active task.
|
StepBlockState |
addPause(java.lang.String taskId,
java.lang.String stepPath)
Add a pause step at the specified position.
|
void |
archive(java.lang.String taskId)
Archive an executed task.
|
TaskWithBlock |
assign(java.lang.String taskId,
java.lang.String owner)
Assigns a task to a different user.
|
void |
cancel(java.lang.String taskId)
Cancels a stopped task.
|
java.util.List<TaskWithBlock> |
export(org.joda.time.LocalDate begin,
org.joda.time.LocalDate end)
Searches for tasks with detailed step information.
|
java.util.List<TaskWithBlock> |
getAllCurrentTasks()
Returns all active tasks for all users.
|
BlockState |
getBlock(java.lang.String taskId,
java.lang.String blockPath)
Returns a block by ID.
|
java.util.List<TaskWithBlock> |
getMyCurrentTasks()
Returns the active tasks of the logged in user.
|
StepState |
getStep(java.lang.String taskId,
java.lang.String stepPath,
org.joda.time.DateTime ifModifiedSince)
Retrieves information about a step.
|
StepBlockState |
getSteps(java.lang.String taskId,
java.lang.String blockPath)
Returns a block with steps by ID.
|
TaskWithBlock |
getTask(java.lang.String taskId)
Returns a task by ID.
|
java.util.List<TaskWithBlock> |
query(org.joda.time.LocalDate begin,
org.joda.time.LocalDate end)
Searches for tasks without step information.
|
void |
schedule(java.lang.String taskId,
org.joda.time.DateTime time)
Schedules a task.
|
TaskWithBlock |
skip(java.lang.String taskId,
java.util.List<java.lang.String> stepIds)
Indicates that one or more steps should be skipped.
|
void |
start(java.lang.String taskId)
Starts a task.
|
void |
stop(java.lang.String taskId)
Gracefully stops an active task.
|
TaskWithBlock |
takeover(java.lang.String taskId,
java.lang.String owner)
Takeover a task from the owner.
|
TaskWithBlock |
unskip(java.lang.String taskId,
java.util.List<java.lang.String> stepIds)
Indicates that one or more steps should no longer be skipped, but executed.
|
java.util.List<TaskWithBlock> getMyCurrentTasks()
java.util.List<TaskWithBlock> getAllCurrentTasks()
TaskWithBlock getTask(java.lang.String taskId)
taskId
- the ID of the taskBlockState getBlock(java.lang.String taskId, java.lang.String blockPath)
taskId
- the ID of the taskblockPath
- the ID of the blockStepBlockState getSteps(java.lang.String taskId, java.lang.String blockPath)
taskId
- the ID of the taskblockPath
- the ID of the blockStepState getStep(java.lang.String taskId, java.lang.String stepPath, @HeaderParam(value="If-Modified-Since") org.joda.time.DateTime ifModifiedSince)
taskId
- the ID of the taskstepPath
- the path of the step in the block tree.ifModifiedSince
- the if-modified-since date in RFC 1123 (RFC 822 with 4-digit years) date format.ifModifiedSince
ifModifiedSince
,
otherwise returns a status code of 200 (OK) and the XML containing a StepState.RuntimeException
if the step has not been modified since ifModifiedSince
, 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 taskTaskWithBlock skip(java.lang.String taskId, java.util.List<java.lang.String> stepIds)
taskId
- the ID of the taskstepIds
- the paths of the steps to skipTaskWithBlock unskip(java.lang.String taskId, java.util.List<java.lang.String> stepIds)
taskId
- the ID of the taskstepIds
- the paths of the steps to unskipStepBlockState addPause(java.lang.String taskId, java.lang.String stepPath)
taskId
- the ID of the taskstepPath
- the path of the stepTaskWithBlock 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.TaskWithBlock 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<TaskWithBlock> 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<TaskWithBlock> 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.