<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Activiti 5.11 - unable to create a process attachment in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-11-unable-to-create-a-process-attachment/m-p/130604#M91776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Up to Activiti 5.10 it has been possible to add an attachment to a process instance using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; /** Add a new attachment to a task and/or a process instance and use an input stream to provide the content */&lt;BR /&gt;&amp;nbsp; Attachment createAttachment(String attachmentType, String taskId, String processInstanceId, String attachmentName, String attachmentDescription, InputStream content);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;In case you wanted the content attached to the process instance only you have been able to &lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;"&gt;set the taskId to null&lt;/SPAN&gt;&lt;SPAN&gt;. Hence there has been an attachment assiociated with the process &lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;"&gt;without requiring a task&lt;/SPAN&gt;&lt;SPAN&gt;. That's what javadoc said as well: "Add a new attachment to a task and/&lt;/SPAN&gt;&lt;STRONG&gt;or a process instance&lt;/STRONG&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Activiti 5.11 you'll get an Exception saying "taskId is null".&amp;nbsp; &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do&amp;nbsp; I add an attachment to a process now?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2012 09:31:28 GMT</pubDate>
    <dc:creator>gunnar1</dc:creator>
    <dc:date>2012-12-07T09:31:28Z</dc:date>
    <item>
      <title>Activiti 5.11 - unable to create a process attachment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-11-unable-to-create-a-process-attachment/m-p/130604#M91776</link>
      <description>Up to Activiti 5.10 it has been possible to add an attachment to a process instance using:&amp;nbsp; /** Add a new attachment to a task and/or a process instance and use an input stream to provide the content */&amp;nbsp; Attachment createAttachment(String attachmentType, String taskId, String processInstanceId, Stri</description>
      <pubDate>Fri, 07 Dec 2012 09:31:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-11-unable-to-create-a-process-attachment/m-p/130604#M91776</guid>
      <dc:creator>gunnar1</dc:creator>
      <dc:date>2012-12-07T09:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.11 - unable to create a process attachment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-11-unable-to-create-a-process-attachment/m-p/130605#M91777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow… two almost identical posts in one day &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=5718" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=5718&lt;/A&gt;&lt;SPAN&gt; … Doesn't anybody use any search functionality anymore&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 09:54:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-11-unable-to-create-a-process-attachment/m-p/130605#M91777</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-12-07T09:54:21Z</dc:date>
    </item>
  </channel>
</rss>

