Hi, (I am not sure if this should be done with a custom aspect, but I wrote in this forum) I am trying to do the following:
When an openoffice document(an Impress presentation file) is added to a space, I want to get the slides in it, modify them(for example, add a company logo to each of them), and then copy the new file to another space.
- Get the openoffice file when it is put into the space (if the rule is applied to that space) (*) - Read it into memory with java.util.zip.Zipfile(since the ooo file is actually an archive) and get the contents parsing the XML(I'll use JDOM). - Modify the document - Put it into another space (*)
I need help with the Alfresco related steps of this procedure (the ones with a star). I guess I will have to create a custom rule(or an aspect?) but I don't know how. Help will be appreciated.
Sounds like you need to create a custom action. Once done your action could be used to build a rule that will be run when new content arrives in a Space.
Have a look in the wiki for some help on creating a custom action.