Friday 22 March 2019

CMIS Workbench: Groovy Console


CMIS workbench provides Groovy console, by using this you can execute Groovy script.

How to open Groovy console window?
Open CMIS workbench. Go to Console -> Basic Template.

It opens following groovy console window.


Copy following lines to Groovy console window.

def info = session.getRepositoryInfo()
println "Repository Name: " + info.getName()

and run the application. Go to Script -> Run


You can able to see following output in console window.

groovy> def info = session.getRepositoryInfo()
groovy> println "Repository Name: " + info.getName()

Repository Name: Apache Chemistry OpenCMIS InMemory Repository



Previous                                                 Next                                                 Home

No comments:

Post a Comment