Where and how are space rules stored in alfresco (i.e. in an XML file? table? …).
I have a bunch of very similar rules I would like to add. I would rather edit a file or table than use the web interface in this case since there are a lot of them.
They are stored the same as documents/spaces. You could look at the nodebrowser. If you navigate (with the nodebrowser)to a space node you could see that one of the children of the space is a rulefolder(if the space contains at leat one rule). This rulefolder contains all the configuration data of all the rules that belong to that space.
You could create those rules via javascript. I don't think there are standard script functions for creating a rule, but you could simulate it with making a new node, give it the right type and properties.
If you have not created your folders yet, create one as a template, and set the rules on that folder. The rules will be copied as well when you create your new folders.
If your folders are already in place, remember that rules can be inherited, so you only have to apply them on the top level of your hierarchy to have the same set of rules for the child folders.
Maybe ther is another way to do this? I am creating simple workflows for approvals. I need the files to move from the sub space under drafts to the parallel subspace in panding approvals, approvals… When you create the simple workflow you need to specify the "move to space" so I am creating a rules (Request Approval, Approve, Reject…) on each space. That's a lot of clicking and typing when using the web interface.