<?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 Invoking a webscript from Script in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/invoking-a-webscript-from-script/m-p/292865#M245995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a set of webscripts that I would like to invoke from an Alfresco Script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't know if it's relevant, the script is a part of a folder rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By looking at the documentation it is stated that any client capable of doing http request can invoke a webscripts, so it seems it is not possible from within a Script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If instead is possible, could you provide some example ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a few notes about what I am trying to achieve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the starting point: a folder MyFolder with a rule, a Script 'MyScript' and a WebScript 'MyWebScript'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Whenever a file is added or removed in MyFolder the workflow invoke 'MyScript'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'MyScript' is in turn invoking 'MyWebScript' which is doing some CMIS queries and give back an XML file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'MyScript' should get that xml and create a node/file with such content, or at least save the file itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The webscripts set is already well consolidated, so I would like to reuse the logic as much as possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 13:00:25 GMT</pubDate>
    <dc:creator>leonardo_celati</dc:creator>
    <dc:date>2014-04-29T13:00:25Z</dc:date>
    <item>
      <title>Invoking a webscript from Script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invoking-a-webscript-from-script/m-p/292865#M245995</link>
      <description>I have a set of webscripts that I would like to invoke from an Alfresco Script.Don't know if it's relevant, the script is a part of a folder rule.By looking at the documentation it is stated that any client capable of doing http request can invoke a webscripts, so it seems it is not possible from wi</description>
      <pubDate>Tue, 29 Apr 2014 13:00:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invoking-a-webscript-from-script/m-p/292865#M245995</guid>
      <dc:creator>leonardo_celati</dc:creator>
      <dc:date>2014-04-29T13:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking a webscript from Script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invoking-a-webscript-from-script/m-p/292866#M245996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is possible to invoke a webscript from the javascript/java based actions.You can use HttpClient, RestClient to invoke the webscripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using javascript then you will have to create custom javascript extension and inside it's java code invoke a webscript to complete your required processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please refer - &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/comment/146025#comment-146025" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/comment/146025#comment-146025&lt;/A&gt;&lt;SPAN&gt; - to get detail about how to create a javascript extension for reference.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 13:16:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invoking-a-webscript-from-script/m-p/292866#M245996</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-04-29T13:16:00Z</dc:date>
    </item>
  </channel>
</rss>

