Class Workflows

java.lang.Object
org.opencastproject.assetmanager.util.Workflows

public class Workflows extends Object
Utility class to apply workflows to episodes. Removed 'final class' so that we can mock it for unit tests.
  • Constructor Details

  • 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.