cancel
Showing results for 
Search instead for 
Did you mean: 

Commit in Java Script

ediez
Champ in-the-making
Champ in-the-making
Hi all,

I've coded a script that takes values from an excel sheet and then iterates over all of the documents in the Alfresco repository assigning data for an aspect.

The thing is it might be up to 30,000 iterations and I'd like to commit the transaction every time a document is assigned those values.

I was wondering if there is any way to control this from my script code.

Any help will be greatly appreciated.

Regards,
1 REPLY 1

pmonks
Star Contributor
Star Contributor
Currently the only way to manually demarcate transactions is to implement the code in Java.  The main API of interest is the TransactionService (http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/transaction/TransactionSe...).

Cheers,
Peter