cancel
Showing results for 
Search instead for 
Did you mean: 

Batch scripting with Alfresco

msmith
Champ in-the-making
Champ in-the-making
Hello,

I keep finding myself wanting to have automated tasks or one-time fix ups where an Alfresco admin utility would be handy. The kinds of things I need to do are:
-Upload content
-Download content
-Change ACLs
-Manipulate metadata

I can accomplish transfers in FTP, but that doesn't get me metadata manipulation or ACL changes. Before we go write something, any suggestions?
3 REPLIES 3

pmonks
Star Contributor
Star Contributor
I've found that Javascript is a great way to accomplish these kinds of things - upload your script and run it as an action ("Run Action > Execute a Script").

Now what would be really cool would be an interactive server-side Javascript console ala http://www.goosh.org/.  It shouldn't be too difficult to implement using Web Scripts (http://wiki.alfresco.com/wiki/Web_Scripts) either.

Cheers,
Peter

jpfi
Champ in-the-making
Champ in-the-making
Hi Peter,
that's an excellent idea. An interactivce javascript Alfresco administration console would be a great tool. Let's start a Forge Project! I would join and contribute. Alfresco is missing such a "dynamic adminstration" tool.
If we built a console it should be an easy step implementing an adminstraion-UI on top of this. Perhaps using ExtJS or sth similar.
Cheers, Jan

flm
Champ in-the-making
Champ in-the-making
Hi,

I know this is an old topic but I like to point out that there is Javascript Console now that I have contributed to the share-extras project: http://code.google.com/p/share-extras/wiki/JavascriptConsole

It is really helpful for batch operations but for large repositories you might still want to use Java where you have control over the transaction handling and can run update operations in smaller transactions.

Regards,
Florian