cancel
Showing results for 
Search instead for 
Did you mean: 

question to web Scripts and transaction

jego
Star Contributor
Star Contributor
Hello,

I have found a section of transaction handling for web scripts in the wiki under http://wiki.alfresco.com/wiki/Web_Scripts#1._Create_a_Description_Document. But I do not know what is meant by setting the value of transaction to required. Does it mean that the webscript is automatically under transaction? Is there an rollback of the transaction If I will throw an exception in the implemented execute()-method of the interface WebScript?

Thanks in advance,
Jens
1 REPLY 1

ericc
Champ in-the-making
Champ in-the-making
You have this on the wiki, I don't know if it is what you search.

#  transaction (optional) is the required level transaction; valid values are:
    * none specifies that no transaction is required at all
    * required specifies that a transaction is required (and will inherit an existing transaction, if open)
    * requiresnew specifies that a new transaction is required
    * Note: if not specified, the default value is none if authentication is also none, otherwise the value is required