<?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 execute script with direct URL? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-execute-script-with-direct-url/m-p/234426#M187556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do we execute a script with direct URL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Alfresco wiki :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.0_JavaScript_API#Executing_Scripts_in_the_Alfresco_Explorer_Web_Client" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.0_JavaScript_API#Executing_Scripts_in_the_Alfresco_Explorer_Web_Client&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The second way is to use direct URL addressing for a REST-style of execution. The Alfresco web client features a generic 'command' servlet that allows the execution of scripts directly via URLs. This feature allows direct access to scripts and the result of the script is returned as the HTML response stream. See the Command Servlet documentation for more information on this servlet.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;In the script command processor section:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Responsible for processing an Alfresco JavaScript through the 'execute' command. The NodeRef supplied as the first 3 arguments of the node specify the script to execute. Optionally an additional NodeRef can be specified to provide a document node context to the script (in addition the parent folder of the document node will then be used as the space context to the script). Returns the result of the script (if any) converted to a string as the HTML response. See the JavaScript API page for more information on the Alfresco JavaScript API. &lt;BR /&gt;&lt;BR /&gt;Examples: &lt;BR /&gt;&lt;BR /&gt;/alfresco/command/script/execute/workspace/SpacesStore/d8470f03-b80a-11da-97b9-8d453af5a554&lt;BR /&gt;/alfresco/command/script/execute/workspace/SpacesStore/d8470f03-b80a-11da-97b9-8d453af5a554/workspace/SpacesStore/12345678-9012-11da-97b9-8d453af5a554&lt;BR /&gt;Any additional URL parameter arguments can be passed to the servlet, they will be collected and supplied to the scripting data-model into an associative JavaScript array object called args. The args object is accessable from the root of the script scope and contains all the URL name/value pairs supplied to the servlet.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Where do we get the coreect NodeRef to execute for a script?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jan 2010 10:29:16 GMT</pubDate>
    <dc:creator>targa2000</dc:creator>
    <dc:date>2010-01-26T10:29:16Z</dc:date>
    <item>
      <title>how to execute script with direct URL?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-execute-script-with-direct-url/m-p/234426#M187556</link>
      <description>How do we execute a script with direct URL?In Alfresco wiki :http://wiki.alfresco.com/wiki/3.0_JavaScript_API#Executing_Scripts_in_the_Alfresco_Explorer_Web_ClientThe second way is to use direct URL addressing for a REST-style of execution. The Alfresco web client features a generic 'command' servle</description>
      <pubDate>Tue, 26 Jan 2010 10:29:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-execute-script-with-direct-url/m-p/234426#M187556</guid>
      <dc:creator>targa2000</dc:creator>
      <dc:date>2010-01-26T10:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to execute script with direct URL?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-execute-script-with-direct-url/m-p/234427#M187557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to upload the script in the Data Dictionary -&amp;gt; Scripts space. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you need to click on "View Details" of this script in the repository and copy the link of Alfresco Node Reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the Alfresco Node Reference that you need to use to invoke this script using the servlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 13:52:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-execute-script-with-direct-url/m-p/234427#M187557</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2010-01-27T13:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to execute script with direct URL?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-execute-script-with-direct-url/m-p/234428#M187558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, you can also use pathes here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;wiki:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The reference to the script or the context node can now be specified as 'scriptPath' and 'contextPath' URL arguments rather than as NodeRef elements. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/alfresco/command/script/execute?scriptPath=/Company%20Home/Data%20Dictionary/Scripts/append%20copyright.js&amp;amp;contextPath=/Company%20Home/file.txt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paths are specified in a similar way to a WebDav path - they are 'cm:name' based URL encoded strings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that the entire URL must be URL encoded appropriately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 15:08:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-execute-script-with-direct-url/m-p/234428#M187558</guid>
      <dc:creator>jpfi</dc:creator>
      <dc:date>2010-01-27T15:08:54Z</dc:date>
    </item>
  </channel>
</rss>

