cancel
Showing results for 
Search instead for 
Did you mean: 

Question regards Rule Scripts.

hyperation
Champ on-the-rise
Champ on-the-rise
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()
{
   return (true);
}
result();

The result function is called and it returns true.  I want to know where or how Alfresco handles the return?  Is it necessary to have one?

It would be really great if there is a documentation or wiki page that explains rule scripts.

Thanks
Smiley Happy
1 REPLY 1

kbonnet
Champ in-the-making
Champ in-the-making
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.

Koen