<?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 Workflow / document association in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/workflow-document-association/m-p/297370#M250500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a workflow that moves document between folders. My problem is that when I create the workflow (using code along the lines of (simplified)):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; node = search.findNode("workspace://SpacesStore/"+args.nodeid); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var workflow = actions.create("start-workflow");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; workflow.execute(node);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is: when I want to end a task, my client has only the document id. From the document Id I can get the workflows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; node.activeWorkflows &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and from there locate the task to end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT if a previous task has caused the document to move, the document ID (or node ID) has changed, and then node.activeWorkflows returns nothing on the moved document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way out of this? Either a move operation that would preserve document IDs, or a way to attach workflows from the previous document ID to the new one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help greatly appreciated…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yann&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Oct 2013 20:28:04 GMT</pubDate>
    <dc:creator>yann1806</dc:creator>
    <dc:date>2013-10-15T20:28:04Z</dc:date>
    <item>
      <title>Workflow / document association</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-document-association/m-p/297370#M250500</link>
      <description>Hi guys,I have a workflow that moves document between folders. My problem is that when I create the workflow (using code along the lines of (simplified)):&amp;nbsp;&amp;nbsp;&amp;nbsp; node = search.findNode("workspace://SpacesStore/"+args.nodeid); &amp;nbsp;&amp;nbsp;&amp;nbsp; var workflow = actions.create("start-workflow");&amp;nbsp;&amp;nbsp;&amp;nbsp; workflow.execute(node)</description>
      <pubDate>Tue, 15 Oct 2013 20:28:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-document-association/m-p/297370#M250500</guid>
      <dc:creator>yann1806</dc:creator>
      <dc:date>2013-10-15T20:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow / document association</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-document-association/m-p/297371#M250501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can get active workflows from the node itself rather than getting it using document ID.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 13:28:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-document-association/m-p/297371#M250501</guid>
      <dc:creator>yogeshpj</dc:creator>
      <dc:date>2013-11-25T13:28:35Z</dc:date>
    </item>
  </channel>
</rss>

