Class Workflows
java.lang.Object
org.opencastproject.assetmanager.util.Workflows
Utility class to apply workflows to episodes. Removed 'final class' so that we can mock it for
unit tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.entwinemedia.fn.Fn<MediaPackage, com.entwinemedia.fn.data.Opt<WorkflowInstance>> Apply a workflow to a media package.com.entwinemedia.fn.Stream<WorkflowInstance> applyWorkflowToLatestVersion(Iterable<String> mpIds, ConfiguredWorkflow wf) Apply a workflow to the latest version of each media package.
-
Constructor Details
-
Workflows
-
-
Method Details
-
applyWorkflowToLatestVersion
public com.entwinemedia.fn.Stream<WorkflowInstance> applyWorkflowToLatestVersion(Iterable<String> mpIds, ConfiguredWorkflow wf) Apply a workflow to the latest version of each media package. -
applyWorkflow
public com.entwinemedia.fn.Fn<MediaPackage,com.entwinemedia.fn.data.Opt<WorkflowInstance>> applyWorkflow(ConfiguredWorkflow wf) Apply a workflow to a media package. The function returns some workflow instance if the workflow could be started successfully, none otherwise.
-