Search in sources :

Example 1 with AttachmentImpl

use of org.jbpm.services.task.impl.model.AttachmentImpl in project jbpm by kiegroup.

the class CollectionUtils method readAttachmentList.

public static List<Attachment> readAttachmentList(ObjectInput in) throws IOException, ClassNotFoundException {
    int size = in.readInt();
    List<Attachment> list = new ArrayList<Attachment>(size);
    for (int i = 0; i < size; i++) {
        Attachment item = new AttachmentImpl();
        item.readExternal(in);
        list.add(item);
    }
    return list;
}
Also used : ArrayList(java.util.ArrayList) Attachment(org.kie.api.task.model.Attachment) AttachmentImpl(org.jbpm.services.task.impl.model.AttachmentImpl)

Aggregations

ArrayList (java.util.ArrayList)1 AttachmentImpl (org.jbpm.services.task.impl.model.AttachmentImpl)1 Attachment (org.kie.api.task.model.Attachment)1