cancel
Showing results for 
Search instead for 
Did you mean: 

Path with content or metadata

goncaloferreira
Champ in-the-making
Champ in-the-making
Hy there again. Solved my first problem I lost all the night trying to figure this out. Is it possible to upload a file and the CMS read its content or its metadata from its header (e.g) and send it to the right path ?
In an assertive way imagine that I upload two pre-scanned files exported as pdf and the one that have the word September in the header will be stored in September folder and the other one with July.. you got the point I think..

Alfresco Community

Best regards
1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator
You can create a action that call metadata extraction api and node api to extracte metadata from pdf and move this node to target space. this action will be used as a “Rule Action”.
Then creating a rule that watches for new or updated pdf files and then runs the  action when you upload files into specify folder.
By creating an action you have two options
1.Create a javascript file and ,and execute it using "Execute Script" action.
2.Write a java action executer class and Configure the action in Spring