AnsweredAssumed Answered

javascript transactions

Question asked by punk on Nov 5, 2012
Latest reply on Nov 5, 2012 by punk
I am writing a javascript which is triggered with an alfresco-rule that runs un background behind a folder in the repository when a file is uploaded.
My problem is that I can't manage the transaction into my javascript.
Even If i catch an error the whole transaction is completely rolled back.
Maybe the solution is to run some part of the script inside a ScriptAction that will be execute through executeAsynchronously() method as described here:

But I can't find how to call or instantiate a ScriptAction from my javascript.
Someone can help?

Thanks in advance.