01-12-2012 06:45 AM
file.getFilePath()
y en su lugar uso este codigo:
import org.ow2.bonita.facade.*;
import org.ow2.bonita.facade.impl.StandardAPIAccessorImpl;
import org.ow2.bonita.facade.runtime.AttachmentInstance;
import org.ow2.bonita.util.AccessorUtil;
QueryRuntimeAPI queryRuntimeAPI = new StandardAPIAccessorImpl().getQueryRuntimeAPI();
AttachmentInstance attachment = queryRuntimeAPI.getLastAttachment(processInstance.getProcessInstanceUUID(),file.getName());
byte[] contents = queryRuntimeAPI.getAttachmentValue(attachment);
File file = new File(attachment.getFileName());
file.createNewFile();
if (contents != null) {
OutputStream os = new FileOutputStream(file);
os.write(contents);
os.close();
}
return file.getAbsolutePath()
04-04-2012 03:29 PM
08-07-2012 06:38 PM
09-21-2012 08:12 AM
09-21-2012 08:14 AM
02-11-2013 04:41 AM
03-15-2013 05:47 PM
11-28-2012 09:30 AM
02-11-2013 03:54 AM
03-18-2013 10:11 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.