Package org.opencastproject.workflow.api
Interface WorkflowOperationDefinition
- All Superinterfaces:
Configurable
- All Known Implementing Classes:
WorkflowOperationDefinitionImpl
Describes an operation or action to be performed as part of a workflow.
-
Method Summary
Modifier and TypeMethodDescriptionThe workflow to run if an exception is thrown while this operation is running.Returns eithernullortrueto have the operation executed.getId()intReturns the number of attempts the workflow service will make to execute this operation.Return the retry strategyReturns eithernullortrueto have the operation skipped.booleanIf true, this workflow will be put into a failed (or failing, if getExceptionHandlingWorkflow() is not null) state when exceptions are thrown during an operation.Methods inherited from interface org.opencastproject.workflow.api.Configurable
getConfiguration, getConfigurationKeys, removeConfiguration, setConfiguration
-
Method Details
-
getId
String getId() -
getDescription
String getDescription() -
getExceptionHandlingWorkflow
String getExceptionHandlingWorkflow()The workflow to run if an exception is thrown while this operation is running. -
isFailWorkflowOnException
boolean isFailWorkflowOnException()If true, this workflow will be put into a failed (or failing, if getExceptionHandlingWorkflow() is not null) state when exceptions are thrown during an operation. -
getExecutionCondition
String getExecutionCondition()Returns eithernullortrueto have the operation executed. Any other value is interpreted asfalseand will skip the operation.Usually, this will be a variable name such as
${foo}, which will be replaced with its acutal value once the workflow is executed.If both
getExecuteCondition()andgetSkipConditionreturn a non-null value, the execute condition takes precedence.- Returns:
- the excecution condition.
-
getSkipCondition
String getSkipCondition()Returns eithernullortrueto have the operation skipped. Any other value is interpreted asfalseand will execute the operation.Usually, this will be a variable name such as
${foo}, which will be replaced with its actual value once the workflow is executed.If both
getExecuteCondition()andgetSkipConditionreturn a non-null value, the execute condition takes precedence.- Returns:
- the excecution condition.
-
getRetryStrategy
RetryStrategy getRetryStrategy()Return the retry strategy- Returns:
- the retry strategy
-
getMaxAttempts
int getMaxAttempts()Returns the number of attempts the workflow service will make to execute this operation.- Returns:
- the maximum number of retries before failing
-