<?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 How can i get attached documents in start task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-attached-documents-in-start-task/m-p/308949#M262079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Iwant to know how to get the list of attached documents in the start task only, when i execute this code , i get all attached documents in the workflow!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WorkflowTask startTask=workflowService.getStartTask(ACTIVITI_PREFIX+execution.getId());&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;NodeRef&amp;gt; startTaskDocs=workflowService.getPackageContents(startTask.getId());&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2014 17:11:02 GMT</pubDate>
    <dc:creator>wajdi_ghribi</dc:creator>
    <dc:date>2014-10-21T17:11:02Z</dc:date>
    <item>
      <title>How can i get attached documents in start task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-attached-documents-in-start-task/m-p/308949#M262079</link>
      <description>Hi,Iwant to know how to get the list of attached documents in the start task only, when i execute this code , i get all attached documents in the workflow!!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WorkflowTask startTask=workflowService.getStartTask(ACTIVITI_PREFIX+execution.getId());&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;NodeRef&amp;gt; startTaskDocs=workf</description>
      <pubDate>Tue, 21 Oct 2014 17:11:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-attached-documents-in-start-task/m-p/308949#M262079</guid>
      <dc:creator>wajdi_ghribi</dc:creator>
      <dc:date>2014-10-21T17:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get attached documents in start task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-attached-documents-in-start-task/m-p/308950#M262080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The getPackageContents method returns the children of the bpm_package. The bpm_package is a folder where the documents of the workflow are put. This folder is located in workspace://SpacesStore store under the following primary path:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/system/1.0}system/{http://www.alfresco.org/model/system/1.0}workflow/{http://www.alfresco.org/model/content/1.0}packages" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/system/1.0}system/{http://www.alfresco.org/model/system/1.0}workflow/{http://www.alfresco.org/model/content/1.0}packages&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The bpm_package is used all along the life of your workflow. As a matter of fact, you can't get the list of attached documents in the start task getting the children of this folder : you will get all documents attached to the workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To solve your problem, I think that you have to store (perhaps within the properties of the workflow) the list of attached documents in the start task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 12:14:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-attached-documents-in-start-task/m-p/308950#M262080</guid>
      <dc:creator>mlagneaux</dc:creator>
      <dc:date>2014-10-22T12:14:57Z</dc:date>
    </item>
  </channel>
</rss>

