public class ResumableWorkflowOperationHandlerBase
extends org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
implements org.opencastproject.workflow.api.ResumableWorkflowOperationHandler
WorkflowOperationResult with the current mediapackage and WorkflowOperationResult.Action.PAUSE and
resuming an operation, returning a WorkflowOperationResult with the current mediapackage and
WorkflowOperationResult.Action.CONTINUE.| Modifier and Type | Field and Description |
|---|---|
protected org.osgi.service.component.ComponentContext |
componentContext
OSGi component context, obtained during component activation
|
protected String |
holdActionTitle
Title of this hold state
|
protected org.opencastproject.rest.StaticResource |
staticResource
The static resource representing the hold state ui
|
protected org.osgi.framework.ServiceRegistration |
staticResourceRegistration
Reference to the static resource service
|
| Constructor and Description |
|---|
ResumableWorkflowOperationHandlerBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.service.component.ComponentContext componentContext) |
void |
deactivate()
Callback from the OSGi environment on component shutdown.
|
String |
getHoldActionTitle() |
String |
getHoldStateUserInterfaceURL(org.opencastproject.workflow.api.WorkflowInstance workflowInstance) |
boolean |
isAlwaysPause() |
protected String |
registerHoldStateUserInterface(String resourcePath)
Registers the resource identified by
resourcePath as the ui to be displayed during hold. |
org.opencastproject.workflow.api.WorkflowOperationResult |
resume(org.opencastproject.workflow.api.WorkflowInstance workflowInstance,
org.opencastproject.job.api.JobContext context,
Map<String,String> properties) |
protected void |
setHoldActionTitle(String title)
Sets the title that is displayed on the hold state ui.
|
org.opencastproject.workflow.api.WorkflowOperationResult |
start(org.opencastproject.workflow.api.WorkflowInstance workflowInstance,
org.opencastproject.job.api.JobContext context)
This default implementation will put the workflow into the hold state.
|
asList, cfgKeyMissing, createResult, createResult, createResult, createResult, createResult, destroy, equals, getCfg, getConfig, getConfig, getConfig, getDescription, getFileNameFromElements, getId, getOptConfig, getOptConfig, hashCode, setJobBarrierPollingInterval, setServiceRegistry, skip, toString, waitForStatus, waitForStatusprotected org.osgi.service.component.ComponentContext componentContext
protected org.osgi.framework.ServiceRegistration staticResourceRegistration
protected org.opencastproject.rest.StaticResource staticResource
protected String holdActionTitle
public ResumableWorkflowOperationHandlerBase()
public void activate(org.osgi.service.component.ComponentContext componentContext)
activate in class org.opencastproject.workflow.api.AbstractWorkflowOperationHandlerAbstractWorkflowOperationHandler.activate(org.osgi.service.component.ComponentContext)public void deactivate()
public String getHoldStateUserInterfaceURL(org.opencastproject.workflow.api.WorkflowInstance workflowInstance) throws org.opencastproject.workflow.api.WorkflowOperationException
getHoldStateUserInterfaceURL in interface org.opencastproject.workflow.api.ResumableWorkflowOperationHandlerorg.opencastproject.workflow.api.WorkflowOperationExceptionResumableWorkflowOperationHandler.getHoldStateUserInterfaceURL(org.opencastproject.workflow.api.WorkflowInstance)protected void setHoldActionTitle(String title)
title - the titlepublic String getHoldActionTitle()
getHoldActionTitle in interface org.opencastproject.workflow.api.ResumableWorkflowOperationHandlerResumableWorkflowOperationHandler.getHoldActionTitle()protected String registerHoldStateUserInterface(String resourcePath)
resourcePath as the ui to be displayed during hold.resourcePath - the path to the resourcepublic org.opencastproject.workflow.api.WorkflowOperationResult start(org.opencastproject.workflow.api.WorkflowInstance workflowInstance,
org.opencastproject.job.api.JobContext context)
throws org.opencastproject.workflow.api.WorkflowOperationException
start in interface org.opencastproject.workflow.api.WorkflowOperationHandlerstart in class org.opencastproject.workflow.api.AbstractWorkflowOperationHandlerorg.opencastproject.workflow.api.WorkflowOperationExceptionAbstractWorkflowOperationHandler.start(org.opencastproject.workflow.api.WorkflowInstance,
JobContext)public org.opencastproject.workflow.api.WorkflowOperationResult resume(org.opencastproject.workflow.api.WorkflowInstance workflowInstance,
org.opencastproject.job.api.JobContext context,
Map<String,String> properties)
throws org.opencastproject.workflow.api.WorkflowOperationException
resume in interface org.opencastproject.workflow.api.ResumableWorkflowOperationHandlerorg.opencastproject.workflow.api.WorkflowOperationExceptionResumableWorkflowOperationHandler.resume(org.opencastproject.workflow.api.WorkflowInstance,
JobContext, java.util.Map)public boolean isAlwaysPause()
isAlwaysPause in interface org.opencastproject.workflow.api.ResumableWorkflowOperationHandlerCopyright © 2009–2021 Opencast Project. All rights reserved.