use of org.kie.server.api.model.instance.TaskWithProcessDescriptionList in project droolsjbpm-integration by kiegroup.
the class ConvertUtils method convertToTaskInstanceListPO.
public static TaskWithProcessDescriptionList convertToTaskInstanceListPO(Collection<UserTaskInstanceWithPotOwnerDesc> instances) {
if (instances == null) {
return new TaskWithProcessDescriptionList(new org.kie.server.api.model.instance.TaskWithProcessDescription[0]);
}
List<TaskWithProcessDescription> taskInstances = new ArrayList<TaskWithProcessDescription>(instances.size());
for (UserTaskInstanceWithPotOwnerDesc task : instances) {
org.kie.server.api.model.instance.TaskWithProcessDescription instance = convertToTaskPO(task);
taskInstances.add(instance);
}
return new TaskWithProcessDescriptionList(taskInstances);
}
Aggregations