This is json code for the form of upload file
"fieldType":"AttachFileFieldRepresentation",
"id":"upload_file",
"name":"Upload source project (project folder or zip file)",
"type":"upload",
And in a method inside a execution listener class I created I have this code
taskService = ProcessEngines.getDefaultProcessEngine().getTaskService();
Attachment attach = taskService.getAttachment("upload_file");
if(attach!=null){
System.out.println("Attachment not null");
} else {
System.out.println("Null file attached");
}
Every time I get a null file.
I am not able to retrieve the file uploaded. I don't know what I am doing wrong Can you please help me how get the attachment?
getTaskAttachments(String taskId)
method from TaskService to get All Attachments of a task. – Abbas Kararawala Apr 26 '17 at 7:36