org.opencastproject.workflow.api.WorkflowInstance.getMediaPackage()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中org.opencastproject.workflow.api.WorkflowInstance.getMediaPackage()方法的一些代码示例,展示了WorkflowInstance.getMediaPackage()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkflowInstance.getMediaPackage()方法的具体详情如下:
包路径:org.opencastproject.workflow.api.WorkflowInstance
类名称:WorkflowInstance
方法名:getMediaPackage

WorkflowInstance.getMediaPackage介绍

[英]The MediaPackage being worked on by this workflow instance.
[中]此工作流实例正在处理的MediaPackage。

代码示例

代码示例来源:origin: opencast/opencast

/**
 * Gets a notification message with placeholders and substitute them with corresponding meta-data of workflowInstance.
 * The resulting String is transformed to a Json-String
 *
 * @param s                The notification message to transform to Json-String
 * @param workflowInstance The workflowInstance which getting metadata from
 * @return JSON-String containing the information of the workflowInstance
 */
private String makeJson(String s, WorkflowInstance workflowInstance) {
 s = s.replace("%t", checkIfNull(workflowInstance.getTitle(), "Title"));
 s = s.replace("%i", String.valueOf(workflowInstance.getId()));
 s = s.replace("%s", String.valueOf(workflowInstance.getState()));
 s = s.replace("%o", String.valueOf(workflowInstance.getCurrentOperation().getId()));
 s = s.replace("%I", checkIfNull(workflowInstance.getMediaPackage().getIdentifier(), "Mediapackage-ID"));
 s = s.replace("%T", checkIfNull(workflowInstance.getMediaPackage().getTitle(), "Mediapackage-Title"));
 s = s.replace("%c", checkIfNull(workflowInstance.getMediaPackage().getContributors(), "Contributors"));
 s = s.replace("%C", checkIfNull(workflowInstance.getMediaPackage().getCreators(), "Creators"));
 s = s.replace("%D", checkIfNull(workflowInstance.getMediaPackage().getDate(), "Date"));
 s = s.replace("%d", checkIfNull(workflowInstance.getMediaPackage().getDuration(), "Duration"));
 s = s.replace("%l", checkIfNull(workflowInstance.getMediaPackage().getLanguage(), "Language"));
 s = s.replace("%L", checkIfNull(workflowInstance.getMediaPackage().getLicense(), "License"));
 s = s.replace("%S", checkIfNull(workflowInstance.getMediaPackage().getSeriesTitle(), "Series-Title"));
 JsonObject json = new JsonObject();
 json.addProperty("text", s);
 return gson.toJson(json);
}

代码示例来源:origin: opencast/opencast

return createResult(workflowInstance.getMediaPackage(), Action.CONTINUE);

代码示例来源:origin: opencast/opencast

public WorkflowOperationResult start(final WorkflowInstance workflowInstance, JobContext context)
    throws WorkflowOperationException {
 MediaPackage mediaPackage = workflowInstance.getMediaPackage();
 WorkflowOperationInstance operation = workflowInstance.getCurrentOperation();

代码示例来源:origin: opencast/opencast

MediaPackage mediaPackage = workflowInstance.getMediaPackage();

代码示例来源:origin: opencast/opencast

public WorkflowOperationResult start(WorkflowInstance workflowInstance, JobContext context) throws WorkflowOperationException {
 MediaPackage mediaPackage = workflowInstance.getMediaPackage();
 logger.info("Start waveform workflow operation for mediapackage {}", mediaPackage);

代码示例来源:origin: opencast/opencast

MediaPackage mediaPackage = workflowInstance.getMediaPackage();
logger.info("Start timeline previews workflow operation for mediapackage {}", mediaPackage.getIdentifier().compact());

代码示例来源:origin: opencast/opencast

public WorkflowOperationResult start(final WorkflowInstance workflowInstance, JobContext context)
    throws WorkflowOperationException {
 MediaPackage mediaPackage = workflowInstance.getMediaPackage();
 WorkflowOperationInstance operation = workflowInstance.getCurrentOperation();

相关文章