cancel
Showing results for 
Search instead for 
Did you mean: 

Get related content from a task

nino_pelleriti
Champ in-the-making
Champ in-the-making
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?
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Nino,

Could you create jUnit test please?
http://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin