Package org.opencastproject.workflow.api
Interface WorkflowOperationResult
- All Known Implementing Classes:
WorkflowOperationResultImpl
public interface WorkflowOperationResult
The result of a workflow operation.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif this operation can be canceled by the user from an optional hold state.booleanReturnstrueif this operation can be continued by the user from an optional hold state.Operations may optionally request that the workflow be placed in a certain state.Operations may optionally set properties on a workflow operation.longThe number of milliseconds this operation sat in a queue before finishing.voidSets the action to take.voidsetAllowsAbort(boolean isAbortable) Specifies whether the operation should be abortable by the user.voidsetAllowsContinue(boolean isContinuable) Specifies whether the operation should be continuable by the user.
-
Method Details
-
getMediaPackage
MediaPackage getMediaPackage()- Returns:
- The media package that results from the execution of a workflow operation.
-
getProperties
Operations may optionally set properties on a workflow operation.- Returns:
- The properties to set
-
setAction
Sets the action to take.- Parameters:
action- the action
-
getAction
WorkflowOperationResult.Action getAction()Operations may optionally request that the workflow be placed in a certain state.- Returns:
- The action that the workflow service should take on this workflow instance.
-
setAllowsContinue
void setAllowsContinue(boolean isContinuable) Specifies whether the operation should be continuable by the user.- Parameters:
isContinuable-
-
allowsContinue
boolean allowsContinue()Returnstrueif this operation can be continued by the user from an optional hold state. This value is only considered if the action returned by this result equalsWorkflowOperationResult.Action.PAUSE.- Returns:
trueif a paused operation should be continuable
-
setAllowsAbort
void setAllowsAbort(boolean isAbortable) Specifies whether the operation should be abortable by the user.- Parameters:
isAbortable-
-
allowsAbort
boolean allowsAbort()Returnstrueif this operation can be canceled by the user from an optional hold state. This value is only considered if the action returned by this result equalsWorkflowOperationResult.Action.PAUSE.- Returns:
trueif a paused operation should be abortable
-
getTimeInQueue
long getTimeInQueue()The number of milliseconds this operation sat in a queue before finishing.- Returns:
- The time spent in a queue
-