<?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 Re: Using 'import' clause within a webscript controller in a jar in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/using-import-clause-within-a-webscript-controller-in-a-jar/m-p/257471#M210601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No an amp isn't necessary, a jar should be fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look closer at the import statement you can see that it doesn't include the "web-extension" in the path, therefor you must place your file in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;alfresco/site-webscripts/org/alfresco/components/workflow/workflow.lib.js&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;alfresco/web-extension/site-webscripts/org/alfresco/components/workflow/workflow.lib.js&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you were running 4.0 you could probably have used the new extensibility features, meaning you could invoke your own custom .get.js file after the original webscripts have executed. This gives you a chance of modifying the "model" before the templates are executed. You can read more about this here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.alfresco.com/wp/ddraper/2011/08/05/customizing-alfresco-share-javascript-controllers/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/ddraper/2011/08/05/customizing-alfresco-share-javascript-controllers/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But since it seems you're running 3.4 you should go with overriding .lib.js as above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:: Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2011 12:45:15 GMT</pubDate>
    <dc:creator>erikwinlof</dc:creator>
    <dc:date>2011-11-28T12:45:15Z</dc:date>
    <item>
      <title>Using 'import' clause within a webscript controller in a jar</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-import-clause-within-a-webscript-controller-in-a-jar/m-p/257469#M210599</link>
      <description>Hi,I want to override existing web-tier scripts "/components/workflow/start" and package it into a jar extension.I modified the workflow.lib.js library included in the controller start-workflow.get.js:&amp;lt;import resource="classpath:alfresco/site-webscripts/org/alfresco/components/workflow/workflow.l</description>
      <pubDate>Mon, 31 Oct 2011 15:18:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-import-clause-within-a-webscript-controller-in-a-jar/m-p/257469#M210599</guid>
      <dc:creator>franco_valente</dc:creator>
      <dc:date>2011-10-31T15:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'import' clause within a webscript controller in a jar</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-import-clause-within-a-webscript-controller-in-a-jar/m-p/257470#M210600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Am I missing something? Or this kind of extension must be packaged as an amp only?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 11:08:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-import-clause-within-a-webscript-controller-in-a-jar/m-p/257470#M210600</guid>
      <dc:creator>franco_valente</dc:creator>
      <dc:date>2011-11-01T11:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'import' clause within a webscript controller in a jar</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-import-clause-within-a-webscript-controller-in-a-jar/m-p/257471#M210601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No an amp isn't necessary, a jar should be fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look closer at the import statement you can see that it doesn't include the "web-extension" in the path, therefor you must place your file in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;alfresco/site-webscripts/org/alfresco/components/workflow/workflow.lib.js&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;alfresco/web-extension/site-webscripts/org/alfresco/components/workflow/workflow.lib.js&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you were running 4.0 you could probably have used the new extensibility features, meaning you could invoke your own custom .get.js file after the original webscripts have executed. This gives you a chance of modifying the "model" before the templates are executed. You can read more about this here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.alfresco.com/wp/ddraper/2011/08/05/customizing-alfresco-share-javascript-controllers/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/ddraper/2011/08/05/customizing-alfresco-share-javascript-controllers/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But since it seems you're running 3.4 you should go with overriding .lib.js as above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:: Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 12:45:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-import-clause-within-a-webscript-controller-in-a-jar/m-p/257471#M210601</guid>
      <dc:creator>erikwinlof</dc:creator>
      <dc:date>2011-11-28T12:45:15Z</dc:date>
    </item>
  </channel>
</rss>

