AnsweredAssumed Answered

Get related content from a task

Question asked by nino.pelleriti on Aug 27, 2015
Latest reply on Aug 31, 2015 by martin.grofcik
Hi,
i need to move a related content from an user task to another. I write this code:

Task task = processEngine.getTaskService().createTaskQuery().processInstanceId(pointedProcess.getProcessInstanceId())
.taskName("activeContractTask").singleResult();

System.out.println("task.getId(): " + task.getId());

List<Attachment> list = processEngine.getTaskService().getTaskAttachments(task.getId());
System.out.println("size: " + list.size());

It finds the  active task but the attachmentList size is 0.
Why?

Outcomes