<?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 Document node in ServiceTask - not found in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/document-node-in-servicetask-not-found/m-p/8332#M3779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks to the awesome Jeff Potts's tutorials i managed to create a simple workflow which starts when content is added to Draft folder and moves&amp;nbsp;added document&amp;nbsp;to Approved or Rejected folders accordingly to user task output.&lt;/P&gt;&lt;P&gt;Unfortunatelly, it throws an error and says that the 'document' is not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the newest version of Alfresco (6.0)&lt;/P&gt;&lt;P&gt;This is the fragment of my &lt;EM&gt;workflow.bpmn20.xml&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;serviceTask id="moveTask" name="Alfresco Move Script Task" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;gt;document.move("Accepted");&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;lt;/serviceTask&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why document node has not been defined?&lt;/P&gt;&lt;P&gt;It might be better to use workflow_model variables, but 'userhome' node is working fine so why 'document' node is not?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. Is there a way to simply debug Alfresco repo and list all workflow avaiable variables? (i know about workflow console but it does not seem to have such a capabilities)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jul 2019 14:08:29 GMT</pubDate>
    <dc:creator>upforsin</dc:creator>
    <dc:date>2019-07-16T14:08:29Z</dc:date>
    <item>
      <title>Document node in ServiceTask - not found</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-node-in-servicetask-not-found/m-p/8332#M3779</link>
      <description>Hello,Thanks to the awesome Jeff Potts's tutorials i managed to create a simple workflow which starts when content is added to Draft folder and moves&amp;nbsp;added document&amp;nbsp;to Approved or Rejected folders accordingly to user task output.Unfortunatelly, it throws an error and says that the 'document' is not</description>
      <pubDate>Tue, 16 Jul 2019 14:08:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-node-in-servicetask-not-found/m-p/8332#M3779</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-07-16T14:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Document node in ServiceTask - not found</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-node-in-servicetask-not-found/m-p/8333#M3780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If anyone had the same problem, here is a workaround:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;bpm_package.children[0].move(DESTINATION_FOLDER);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Still, i do not understand why it the document node is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 18:32:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-node-in-servicetask-not-found/m-p/8333#M3780</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-07-16T18:32:23Z</dc:date>
    </item>
  </channel>
</rss>

