cancel
Showing results for 
Search instead for 
Did you mean: 

Webscrip transactions

zafarale
Champ in-the-making
Champ in-the-making
Hi All,
         I am trying to add tag
NodeRef.addTag("tag")
NodeRef. move(destination)

But get an exception, seems like a transaction issue.

Error I get is
org.alfresco.service.cmr.version.VersionServiceException: 04120024 The current version label of the node does not exist in the version history."
4 REPLIES 4

romschn
Star Collaborator
Star Collaborator
Are you trying to create your own webscript to add tags on a node? There is already an out-of-the-box webscript available to add tag on a node. Take a look at - node.tags.post.desc.xml in order to understand its usage available at tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\tagging location.
Hope this helps.

zafarale
Champ in-the-making
Champ in-the-making
Its a custom REST service, whicha llows users to delte items, which does nto actually deletes anything it moves file to another location prefix its name with timestamp, and add tag denoteing its deleted (Action).

romschn
Star Collaborator
Star Collaborator
How you are handling verisoning here?

zafarale
Champ in-the-making
Champ in-the-making
I have space rule which enable/adds version aspect to each item