<?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 to get noderef parameter in the workflow page in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-parameter-in-the-workflow-page/m-p/298497#M251627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to get the noderef parameter in the workflow page by passing the workflowinstance.package which is present in the page.The AJAX call below return "401 unauthorized" error.i did try with changing the url to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Alfresco.constants.PROXY_URI + "-noauth/slingshot/node/workspace/SpacesStore/"+workflowinstance.package",still no luck.is there any way I can get the noderef parameter in the task-list.js ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;url: Alfresco.constants.PROXY_URI + "/slingshot/node/workspace/SpacesStore/"+workflowinstance.package,which is giving me the below error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;status" : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "code" : 401,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "Unauthorized",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "description" : "The request requires HTTP authentication."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; },&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found out that calling the above webscript need admin access.can i call this webscript from a consumer user ??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Mar 2015 09:26:31 GMT</pubDate>
    <dc:creator>skumar_us</dc:creator>
    <dc:date>2015-03-01T09:26:31Z</dc:date>
    <item>
      <title>How to get noderef parameter in the workflow page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-parameter-in-the-workflow-page/m-p/298497#M251627</link>
      <description>I am trying to get the noderef parameter in the workflow page by passing the workflowinstance.package which is present in the page.The AJAX call below return "401 unauthorized" error.i did try with changing the url to "Alfresco.constants.PROXY_URI + "-noauth/slingshot/node/workspace/SpacesStore/"+wo</description>
      <pubDate>Sun, 01 Mar 2015 09:26:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-parameter-in-the-workflow-page/m-p/298497#M251627</guid>
      <dc:creator>skumar_us</dc:creator>
      <dc:date>2015-03-01T09:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get noderef parameter in the workflow page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-parameter-in-the-workflow-page/m-p/298498#M251628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;found the solution .noderef can be get by passing the task id. below is the script code for this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;function main(){&lt;BR /&gt;var taskId = args.taskId&lt;BR /&gt;var task = workflow.getTaskById(taskId);&lt;BR /&gt;var nodeRef = task.getPackageResources()[0].nodeRef;&lt;BR /&gt;model.nodeRef = nodeRef;&lt;BR /&gt;}&lt;BR /&gt;main();&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;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 16:09:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-noderef-parameter-in-the-workflow-page/m-p/298498#M251628</guid>
      <dc:creator>skumar_us</dc:creator>
      <dc:date>2015-03-02T16:09:49Z</dc:date>
    </item>
  </channel>
</rss>

