return createJob(jobName, inputAsset, tasks);
}
public JobInfo createJob(String jobName, AssetInfo inputAsset,
List<Task.CreateBatchOperation> tasks) throws ServiceException {
Creator jobCreator = Job.create().setName(jobName)
.addInputMediaAsset(inputAsset.getId()).setPriority(2);
for (Task.CreateBatchOperation task : tasks) {
jobCreator.addTaskCreator(task);
}
return service.create(jobCreator);
}