Views
Replies
Total Likes
Views
Replies
Total Likes
filename
being NULL
.
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Set;
ArrayList list = patExecContext.getProcessDataListValue("/process_data/attachments");
System.out.println("[TEST] num attachments: "+ list.size());
for (Iterator it = list.iterator(); it.hasNext(); ){
com.adobe.idp.Document doc = (com.adobe.idp.Document)it.next();
System.out.println("[TEST] attachment #1, filename: '"+ doc.getFile().getName() +"'");
System.out.println("[TEST] attachment #1, filename-attribute: '"+ doc.getAttribute("wsfilename") +"'");
System.out.println("[TEST] attachment #1, file size: '"+ doc.length() +"'");
System.out.println("[TEST] attachment #1, content-type: "+ doc.getContentType());
Set attributeList = doc.listAttributes();
System.out.println("[TEST] num attributes: "+ attributeList.size());
for (Iterator attributeIter = attributeList.iterator(); attributeIter.hasNext();){
String attribute = (String)attributeIter.next();
System.out.println("[TEST] attribute found: "+ attribute);
}
}
[STDOUT] [TEST] num attachments: 1
[STDOUT] [TEST] attachment #1, filename: '646834941068179579'
[STDOUT] [TEST] attachment #1, filename-attribute: 'null'
[STDOUT] [TEST] attachment #1, file size: '14624'
[STDOUT] [TEST] attachment #1, content-type: null
[STDOUT] [TEST] num attributes: 0
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies