cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti 5.11 - unable to create a process attachment

gunnar1
Champ in-the-making
Champ in-the-making
Up to Activiti 5.10 it has been possible to add an attachment to a process instance using:


  /** Add a new attachment to a task and/or a process instance and use an input stream to provide the content */
  Attachment createAttachment(String attachmentType, String taskId, String processInstanceId, String attachmentName, String attachmentDescription, InputStream content);

In case you wanted the content attached to the process instance only you have been able to set the taskId to null. Hence there has been an attachment assiociated with the process without requiring a task. That's what javadoc said as well: "Add a new attachment to a task and/or a process instance".

In Activiti 5.11 you'll get an Exception saying "taskId is null".  Smiley Sad

How do  I add an attachment to a process now?
1 REPLY 1

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Wow… two almost identical posts in one day http://forums.activiti.org/en/viewtopic.php?f=6&t=5718 … Doesn't anybody use any search functionality anymore