05-23-2012 12:50 PM
I would like to create about 100 workspaces with nuxeo-shell.
with my_batch_file :
connect -u Administrator -p Administrator http://localhost:8080/nuxeo/site/automation
cd /default-domain/workspaces
mkdir -title W1 Workspace path_W1
OK to create W1 but how loop to create W2, W3... (and their paths) ?
05-23-2012 01:10 PM
Using groovy, you'll need to use nuxeo-core java api: May be this can help you: http://doc.nuxeo.com/x/VIdH
You can try:
doc = Session.createDocumentModel("/default-domain/workspaces","myWS,"Workspace");
doc.setPropertyValue("dc:title", "my WS");
Session.createDocument(doc);
05-23-2012 01:33 PM
perfect ! it works !
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.