Alfresco,
I would like to join 2 nice rule features. On one side you have the simple workflow rule which adds an option to every document, on the other side one can add scripts as a rule.
I'm trying to build a backup JavaScript (as seen in the example in the WIKI) that creates a backup folder if none exists and adds a copy to this folder.
Problem is that I don't want this to happen when a document is added, removed or updated. Documents only need to be copied when the user requests this. So I would like to add the simple workflow but it should start a script instead of the copy/move it's using now. Any ideas? I can do this with the simple workflow but the backup subspace is not there when it's the first document to backup.
Some possible workaround: the user can add a new category "backup" to the document and I create a space rule that executes the backup script when a document is updated but only if it has the "backup" category applied. This strategy should work but the user needs at least 8 clicks to add this category, the "2 click simple workflow + script execution" way sounds much nicer.
I short: trigger a script with the simple workflow rule. New feature, some other ways around this? Comments are welcome.