<?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 Re: fetch all the docs and attachments related to a completed workflow of a given model in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/fetch-all-the-docs-and-attachments-related-to-a-completed/m-p/36581#M15429</link>
    <description>&lt;P&gt;What you mean by given model?&lt;/P&gt;&lt;P&gt;Is this for Alfresco content service or alfresco process service?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 03:43:21 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2023-02-10T03:43:21Z</dc:date>
    <item>
      <title>fetch all the docs and attachments related to a completed workflow of a given model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-all-the-docs-and-attachments-related-to-a-completed/m-p/36580#M15428</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;How do I &lt;SPAN&gt;fetch all the docs and attachments related to a completed workflow of a given model?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If that is achievable without any customization, please provide guidance/snippet on that.&lt;/P&gt;&lt;P&gt;its APS 1.10.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 15:17:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-all-the-docs-and-attachments-related-to-a-completed/m-p/36580#M15428</guid>
      <dc:creator />
      <dc:date>2023-02-07T15:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: fetch all the docs and attachments related to a completed workflow of a given model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-all-the-docs-and-attachments-related-to-a-completed/m-p/36581#M15429</link>
      <description>&lt;P&gt;What you mean by given model?&lt;/P&gt;&lt;P&gt;Is this for Alfresco content service or alfresco process service?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 03:43:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-all-the-docs-and-attachments-related-to-a-completed/m-p/36581#M15429</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2023-02-10T03:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: fetch all the docs and attachments related to a completed workflow of a given model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-all-the-docs-and-attachments-related-to-a-completed/m-p/36582#M15430</link>
      <description>&lt;P&gt;Here is clarification.&lt;/P&gt;&lt;P&gt;App Designer uses visual steps to create our bpmn model,&lt;/P&gt;&lt;P&gt;When we create app Using App Designer, it includes User Task and many such steps. If we can get attachment via javascript snippet to get.&lt;/P&gt;&lt;P&gt;and I need solution for APS&amp;nbsp; not ACS.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="appDesigner.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/262i3D73664DD0E3F604/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 04:16:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-all-the-docs-and-attachments-related-to-a-completed/m-p/36582#M15430</guid>
      <dc:creator />
      <dc:date>2023-02-10T04:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: fetch all the docs and attachments related to a completed workflow of a given model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-all-the-docs-and-attachments-related-to-a-completed/m-p/36583#M15431</link>
      <description>&lt;P&gt;You can use the RelatedContentService using the Java API.&lt;/P&gt;
&lt;P&gt;You could create a ServiceTask using the following method:&lt;/P&gt;
&lt;PRE&gt;relatedContentService.getFileContentForProcessInstance(task.getProcessInstanceId(), field, pageSize, page);&lt;/PRE&gt;
&lt;P&gt;field is the process variable id that you have in your form for managing that specific attachment.&lt;/P&gt;
&lt;P&gt;For example you could have something like the following:&lt;/P&gt;
&lt;PRE&gt;relatedContentService.getFileContentForProcessInstance(task.getProcessInstanceId(), "contractAttachments", 10, 0);&lt;/PRE&gt;
&lt;P&gt;Hope this helps&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 09:42:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-all-the-docs-and-attachments-related-to-a-completed/m-p/36583#M15431</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2023-02-13T09:42:19Z</dc:date>
    </item>
  </channel>
</rss>

