<?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 Moved file disappears from the resources package ? [SOLVED] in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/moved-file-disappears-from-the-resources-package-solved/m-p/242618#M195748</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;BR /&gt;&lt;SPAN&gt;I wrote a java action (extending JBPMSpringActionHandler) that creates somes folders and move the file referenced in the bpm_package in one of those new folders. The task runs fine, the file is moved (I checked it with the explorer) but in the next task of the workflow, I don't see anymore a file in the 'resource' section of the GUI presenting the next workflow task (it's written&amp;nbsp; 'No resources found'). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when, in the next task, I list the childs of the process variable bpm_package, I still can see the file and its path is the new one. &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So why don't we see it anymore in the resource section (using the Alfresco Explorer interface) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like the file to stay availlable in the GUI, even if we move it in java.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The way I find the file in java:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;JBPMNode bpm_package = (JBPMNode) executionContext.getContextInstance().getVariable("bpm_package");&lt;BR /&gt;NodeRef pkg = bpm_package.getNodeRef();&lt;BR /&gt;List&amp;lt;ChildAssociationRef&amp;gt; childs = nodeService.getChildAssocs(pkg);&lt;BR /&gt;NodeRef fileInWorkflowNodeRef = null;&lt;BR /&gt;for (ChildAssociationRef child : childs) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileInWorkflowNodeRef = child.getChildRef();&lt;BR /&gt;…&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;/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;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I create some folders, and move the 'fileInWorkflowNodeRef' to the new folders.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really hope someone could help me,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alain.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2009 12:40:55 GMT</pubDate>
    <dc:creator>abcbien</dc:creator>
    <dc:date>2009-08-27T12:40:55Z</dc:date>
    <item>
      <title>Moved file disappears from the resources package ? [SOLVED]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/moved-file-disappears-from-the-resources-package-solved/m-p/242618#M195748</link>
      <description>Hi,I wrote a java action (extending JBPMSpringActionHandler) that creates somes folders and move the file referenced in the bpm_package in one of those new folders. The task runs fine, the file is moved (I checked it with the explorer) but in the next task of the workflow, I don't see anymore a file</description>
      <pubDate>Thu, 27 Aug 2009 12:40:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/moved-file-disappears-from-the-resources-package-solved/m-p/242618#M195748</guid>
      <dc:creator>abcbien</dc:creator>
      <dc:date>2009-08-27T12:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Moved file disappears from the resources package ? [SOLVED]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/moved-file-disappears-from-the-resources-package-solved/m-p/242619#M195749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The assignee for the task doesn't have access rights to the file in the package. Thats why he could not see it ! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why didn't I think to it earlier ?!&amp;nbsp; :roll: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe this experience will help others.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alain&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 10:08:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/moved-file-disappears-from-the-resources-package-solved/m-p/242619#M195749</guid>
      <dc:creator>abcbien</dc:creator>
      <dc:date>2009-09-01T10:08:36Z</dc:date>
    </item>
  </channel>
</rss>

