cancel
Showing results for 
Search instead for 
Did you mean: 

update, automatically, the properties of records in my Alfre

avogadro
Champ in-the-making
Champ in-the-making
Hi,
I want to update, automatically, the properties of records in my Alfresco RM share with script.
the scenario is as follows:
as soon as I receive a file in a directory (this file contains keys separated by commas: IdDossier, IdDossier,……), I have to look all aspects including IdDossier contained in this file and then update another property of these aspects (EtatDossier)
Thanks for your time
1 REPLY 1

erikwinlof
Confirmed Champ
Confirmed Champ
Hi, yes there is.

Please start by taking a look at how "rules" and "actions" work. Using them means you can make sure that actions are being triggered when files arrive into a folder when certain rules apply to that content. What you basically want to do is to make sure that your own repository action (that parses the incoming file and performs the properties & aspects updates) is being runned.

Go to http://docs.alfresco.com/ and…

1. navigate to the following section for more details on how to setup rules for a folder so that your action is being triggered:
Alfresco Documentation > Using Alfresco > Using Alfresco Share > The Document Library page component > Working with folders
Using rules

2. navigate to the following section for more details on how to setup your own action.
Alfresco Documentation > Customizing and extending > Developing against the Alfresco repository > Alfresco repository extension points

PS. For a more detailed description on how to create custom actions see:
http://wiki.alfresco.com/wiki/Custom_Actions

PS2. There is also a set of out of the box actions that let you update properties and aspects but since you need to parse the file you have to write that code your self.