<?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 Question regards Rule Scripts. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/question-regards-rule-scripts/m-p/244734#M197864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please tell me how the "return" works in the Rule scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw an example script that looks like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;space.name = space.name + " 1";&lt;BR /&gt;space.save();&lt;BR /&gt;&lt;BR /&gt;function result()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; return (true);&lt;BR /&gt;}&lt;BR /&gt;result();&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The result function is called and it returns true.&amp;nbsp; I want to know where or how Alfresco handles the return?&amp;nbsp; Is it necessary to have one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be really great if there is a documentation or wiki page that explains rule scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2009 23:34:11 GMT</pubDate>
    <dc:creator>hyperation</dc:creator>
    <dc:date>2009-07-27T23:34:11Z</dc:date>
    <item>
      <title>Question regards Rule Scripts.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-regards-rule-scripts/m-p/244734#M197864</link>
      <description>Hi Everyone,Can someone please tell me how the "return" works in the Rule scripts.I saw an example script that looks like this :space.name = space.name + " 1";space.save();function result(){&amp;nbsp;&amp;nbsp; return (true);}result();‍‍‍‍‍‍‍‍‍‍The result function is called and it returns true.&amp;nbsp; I want to know where</description>
      <pubDate>Mon, 27 Jul 2009 23:34:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-regards-rule-scripts/m-p/244734#M197864</guid>
      <dc:creator>hyperation</dc:creator>
      <dc:date>2009-07-27T23:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Question regards Rule Scripts.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-regards-rule-scripts/m-p/244735#M197865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As far as i know your scripts dont need to return anything. But as in any javascript you can use functions which return values for use in other places in the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 07:13:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-regards-rule-scripts/m-p/244735#M197865</guid>
      <dc:creator>kbonnet</dc:creator>
      <dc:date>2009-07-28T07:13:28Z</dc:date>
    </item>
  </channel>
</rss>

