<?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: Calling functions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/calling-functions/m-p/113178#M79664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi dranakan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes it is definitely possible, you can externalize you functions to a javascript file :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;create file : my-js-functions-.js&lt;/STRONG&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;function sendMail(params){&lt;BR /&gt;//mail action goes here;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;STRONG&gt;After that you can call this function wherever you want:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;activiti:string&amp;gt;&lt;BR /&gt;&amp;amp;lt;import resource="classpath:alfresco/extension/workflow/my-js-functions-.js"&amp;amp;gt;&lt;BR /&gt; sendMail(someParams);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Feb 2013 09:50:25 GMT</pubDate>
    <dc:creator>freesoft</dc:creator>
    <dc:date>2013-02-11T09:50:25Z</dc:date>
    <item>
      <title>Calling functions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calling-functions/m-p/113177#M79663</link>
      <description>Hello,Can we call functions in a Activit workflow ? I would like to put the same code in one place… How can I do this ?For example I'am sending a mail at each userTask. Could I put the code in a function and call it ?&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;definitions xmlns="http://www.omg.o</description>
      <pubDate>Tue, 28 Feb 2012 09:02:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calling-functions/m-p/113177#M79663</guid>
      <dc:creator>dranakan</dc:creator>
      <dc:date>2012-02-28T09:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling functions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calling-functions/m-p/113178#M79664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi dranakan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes it is definitely possible, you can externalize you functions to a javascript file :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;create file : my-js-functions-.js&lt;/STRONG&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;function sendMail(params){&lt;BR /&gt;//mail action goes here;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;STRONG&gt;After that you can call this function wherever you want:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;activiti:string&amp;gt;&lt;BR /&gt;&amp;amp;lt;import resource="classpath:alfresco/extension/workflow/my-js-functions-.js"&amp;amp;gt;&lt;BR /&gt; sendMail(someParams);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 09:50:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calling-functions/m-p/113178#M79664</guid>
      <dc:creator>freesoft</dc:creator>
      <dc:date>2013-02-11T09:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calling functions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calling-functions/m-p/113179#M79665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you freesoft&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 11:48:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calling-functions/m-p/113179#M79665</guid>
      <dc:creator>dranakan</dc:creator>
      <dc:date>2013-02-11T11:48:33Z</dc:date>
    </item>
  </channel>
</rss>

