I am searching the easiest way to get this done in alfresco: When I upload a document in a specific folder.I want it to give automatically a content type. So I create a rule on a folder =>
In my rule I have to set an action that gives my document a content type. Or I can make a webscript which will do it for me..
I am searching for a start here. I already followed tutorials on ECMArchitect but I can't manage to find a simple solution for this.
So pls experienced people, can you give me a start?
You have two obvious ways to do this:
The way you propose in your question with a rule that specialises to your content type when new content is added to the folder. To be able to do this you will need a type - subtype declaration in the share forms-config.xml (the same you need to change type in an action)
The other way is to create a java behaviour that binds to the create node event and implements logic that do the speicialise type that is needed.