AnsweredAssumed Answered

Executing an action in asynchronous mode

Question asked by andrepra on Mar 9, 2010
Latest reply on Mar 9, 2010 by mrogers
Hi,
I have an action that works in batch mode configured as a scheduled action. I would like to call the same action from a webscript.
{{{
var rssImport = actions.create("importerPressReviewAction");
rssImport.parameters.dateFrom = dateFrom ;
rssImport.parameters.dateTo = dateTo ;
rssImport.parameters.mailTo = person.properties["cm:email"];
rssImport.parameters.mailFrom = "my@email.com";
rssImport.execute(companyhome);
}}}
The problem is that take a lot of time and the webscript request ends with a timeout. Exists a solutions to launch the action in asynchronous mode? I found this link

http://wiki.alfresco.com/wiki/3.0_JavaScript_API_for_Rules_and_Actions#Add_to_ScriptNode_API

but seems that  methods doen't exists on ScriptNode object.
Thanks
Andrea

Outcomes