cancel
Showing results for 
Search instead for 
Did you mean: 

Custom ID generator for Records Management content

uzbekjon
Champ in-the-making
Champ in-the-making
Hello everyone. I am new to Alfresco development, so go easy on me. I searched the board but could not find an answer to my question.

How can one write his own ID generator for content that is added into the Records Management?

Since RM is also represented as a space in Alfresco, is it a matter of writing your own custom triggerer (rule) for that content ?

Thanks in advance.
6 REPLIES 6

uzbekjon
Champ in-the-making
Champ in-the-making
Any help with this would be apreciated…

Thanks yet again…

jarrett
Champ in-the-making
Champ in-the-making
Hello,

Are you talking about just creating a Unique ID for documents? We did this by creating a policy component that pulls an ID number from a table we created within the Alfresco database.

uzbekjon
Champ in-the-making
Champ in-the-making
Hello,

Are you talking about just creating a Unique ID for documents? We did this by creating a policy component that pulls an ID number from a table we created within the Alfresco database.
Hello Jarrett,

I am looking for a way to generate an ID in different format. Instead of "0001" something like "GEN-0001". Basically, not just plain ID, but in different format with a prefix depending on other aspects.

Thanks.

jenn_l
Champ on-the-rise
Champ on-the-rise
Hi all,

I've created a new aspect DocumentID in the customModel.xml that must be filled automatically with a Javascript which generate id's. This Javascipt will be executed as a Business rule when documents are created/uploaded. Can anyone help me to define this Javascript?

Thanks in advance,
Jenny

jenn_l
Champ on-the-rise
Champ on-the-rise
Hi all,

I've created an aspect with the following javascript code:

var props = new Array (1);
props ["custom:DocumentID"] = 8;
document.addAspect("custom:DocumentID",props);
This script is executed when a document is created. Now i want to retrieve the number 8 in a javascript.
Can anyone at least help me with the code (javascript method) that is used to retrieve the value from an aspect?

Thanks in advance,
Jenny

trelofysikos
Champ in-the-making
Champ in-the-making
After installing the Records Management amp, you can

Assign the rma:Record aspect to a space
Edit the space's details and under Record Category Identifier type the prefix you want your files to have (e.g GEN).

So next time you upload something to this folder it will be given the name of the prefix together with a serial number (e.g GEN-0002)


hope that helps