Class IncludeWorkflowOperationHandler
- java.lang.Object
-
- org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
-
- org.opencastproject.workflow.handler.workflow.IncludeWorkflowOperationHandler
-
- All Implemented Interfaces:
org.opencastproject.workflow.api.WorkflowOperationHandler
public final class IncludeWorkflowOperationHandler extends org.opencastproject.workflow.api.AbstractWorkflowOperationHandlerWorkflow operation handler that will conditionally insert a complete workflow into the current one at its own position.
-
-
Field Summary
Fields Modifier and Type Field Description static StringWORKFLOW_CFGConfiguration value for the workflow operation definition
-
Constructor Summary
Constructors Constructor Description IncludeWorkflowOperationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(org.osgi.service.component.ComponentContext componentContext)voidinsertWorkflow(org.opencastproject.workflow.api.WorkflowInstance wi, String workflowDefinitionId)Adds the operations found in the workflow defined byworkflowDefinitionIdto the workflow instance and returnstrueif everything worked fine,falseotherwise.voidsetWorkflowService(org.opencastproject.workflow.api.WorkflowService service)OSGi DI.org.opencastproject.workflow.api.WorkflowOperationResultstart(org.opencastproject.workflow.api.WorkflowInstance wi, org.opencastproject.job.api.JobContext context)-
Methods inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
asList, cfgKeyMissing, createResult, createResult, createResult, createResult, destroy, equals, getCfg, getConfig, getConfig, getConfig, getDescription, getFileNameFromElements, getId, getOptConfig, getOptConfig, hashCode, setJobBarrierPollingInterval, setServiceRegistry, skip, toString, waitForStatus, waitForStatus
-
-
-
-
Field Detail
-
WORKFLOW_CFG
public static final String WORKFLOW_CFG
Configuration value for the workflow operation definition- See Also:
- Constant Field Values
-
-
Method Detail
-
activate
public void activate(org.osgi.service.component.ComponentContext componentContext)
- Overrides:
activatein classorg.opencastproject.workflow.api.AbstractWorkflowOperationHandler
-
start
public org.opencastproject.workflow.api.WorkflowOperationResult start(org.opencastproject.workflow.api.WorkflowInstance wi, org.opencastproject.job.api.JobContext context) throws org.opencastproject.workflow.api.WorkflowOperationException- Specified by:
startin interfaceorg.opencastproject.workflow.api.WorkflowOperationHandler- Specified by:
startin classorg.opencastproject.workflow.api.AbstractWorkflowOperationHandler- Throws:
org.opencastproject.workflow.api.WorkflowOperationException
-
insertWorkflow
public void insertWorkflow(org.opencastproject.workflow.api.WorkflowInstance wi, String workflowDefinitionId) throws org.opencastproject.workflow.api.WorkflowOperationExceptionAdds the operations found in the workflow defined byworkflowDefinitionIdto the workflow instance and returnstrueif everything worked fine,falseotherwise.- Parameters:
wi- the instance to insert the workflow identified byworkflowDefinitionIdintoworkflowDefinitionId- id of the workflow definition to insert- Throws:
org.opencastproject.workflow.api.WorkflowOperationException- in case of any error
-
setWorkflowService
public void setWorkflowService(org.opencastproject.workflow.api.WorkflowService service)
OSGi DI.
-
-