public void uploadFinished(FinishedEvent event) { Attachment attachment = receiver.getWrapper().getCurrentAttachment(); attachment.setProcessInstanceId(pid); attachment.setComment((String)comment.getValue()); attachment.setProtectedDocument((boolean)checkbox.getValue()); m_workflowDAO.addAttachment(attachment); close(); } });