cancel
Showing results for 
Search instead for 
Did you mean: 

Insert into custom metadata when inserting file(help)

harinderpal
Champ in-the-making
Champ in-the-making
Hi,

I am working on alfresco 3.2.x. I am new to it. I have created custom metadata and it is shown successfully when I view details of file. Now I want the custom metadata which I have created to be filled when I am inserting a document. I don't have any clue regarding that. Please tell me how to make it happen. Thanks in advance.
1 REPLY 1

simo2010
Champ in-the-making
Champ in-the-making
Hi,
your post is a few months old. but i see that you have no reply for your requirement.
Solution:
After deploying your custm content model successfull, you should implement a custom Action class (see SDK example CustomAction). In the  executeImpl(Action action, NodeRef actionedUponNodeRef) call nodeService.setProperty(actionedUponNodeRef, qnme, value), where qname is the quallified name of your custom property. then define a composite  rule (in Web explorer) for the folder in question, the rule must be as follows:
-when document comes specialize type(with condition such as based on mimetype)
-when document comes run custom action that you implements previosly.

ihope it helps.