autoincrement number

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member

autoincrement number

Hi, i need to store a number wich increments always that i create a new content from a specific type. This is for generate an unique code that contain this unique number. This code will be a property of the new content.
Are there any created type or aspect that implements this?
If the answer is no, How can i implement this?

i want it in workflow as soon as possible..

1 Reply
Senior Member

Re: autoincrement number

no OOTB way. There are several ways to implement this, one way would be to create an aspect and implement a repository behavior on the type of file to check the latest number (or better - keep this counter out of the repository) and provide the current file with the incremented value. Jeff has put up an amazing tutorial on getting started with behaviors in alfresco that might help you getting started.

Regards,
Abbas