How can I get a coreSession in a groovy script

Hello

I want to create documents in a script like this: coreSession.createDocumentModel(“/Documents”,id,“DocumentWorkspace”);

How can I instantiate the coreSession?

0 votes

1 answers

1678 views

ANSWER



hello !

You just have to use the variable Session which is available in the context of a groovy script Session.createDocumentModel(“/Documents”,id,“DocumentWorkspace”);

TM

0 votes