From 4db217ee1d6dd403e836747afbb90f54fb119af4 Mon Sep 17 00:00:00 2001 From: Jens Goldhammer Date: Fri, 20 Nov 2015 16:34:38 +0100 Subject: [PATCH 1/2] Update README.md description for new rootobjects --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index ca8b73b..ddbcab0 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,32 @@ Following root objects are provided: * start jobs in javascript via JMX * example: https://gist.github.com/jgoldhammer/6941374 +* **repoAdmin** + * uses the repo admin interpreter from the repo admin console + * write your commands and get back the result in the js-console + * example 1: print(repoAdmin.exec('help')) - show the help + * example 2: print(reopAdmin.exec('show models')); - show all additional datamodels + * **solr** * currently get the index state of a node (currently not working due to a bug in the SolrIndexService) * example: tbd +* **tenantAdmin** + * uses the repo admin interpreter from the repo admin console + * write your commands and get back the result in the js-console + * example 1: print(tenantAdmin.exec('help')) - show the help + * example 2: print(tenantAdmin.exec('show tenants')); - show all tenants (if you create one before!) + * **trans** * create a new transaction * start, commit and rollback (database) transactions during the javascript execution * example: tbd + +* **workflowAdmin** + * uses the workflowinterpreter from the workflow console + * write your commands and get back the result in the js-console + * example 1: print(workflowAdmin.exec('help')) - show the help + * example 2: print(workflowAdmin.exec('show definitions')); - show all workflow definitions Building -------- From 75cc4e9e25b4920bebfd2ef8ea02e1d3cf3195e6 Mon Sep 17 00:00:00 2001 From: Jens Goldhammer Date: Fri, 20 Nov 2015 16:35:46 +0100 Subject: [PATCH 2/2] Update README.md better code style for the examples --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ddbcab0..14d0b66 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,8 @@ Following root objects are provided: * **repoAdmin** * uses the repo admin interpreter from the repo admin console * write your commands and get back the result in the js-console - * example 1: print(repoAdmin.exec('help')) - show the help - * example 2: print(reopAdmin.exec('show models')); - show all additional datamodels + * example 1: ```print(repoAdmin.exec('help'))``` - show the help + * example 2: ```print(reopAdmin.exec('show models'));``` - show all additional datamodels * **solr** * currently get the index state of a node (currently not working due to a bug in the SolrIndexService) @@ -43,8 +43,8 @@ Following root objects are provided: * **tenantAdmin** * uses the repo admin interpreter from the repo admin console * write your commands and get back the result in the js-console - * example 1: print(tenantAdmin.exec('help')) - show the help - * example 2: print(tenantAdmin.exec('show tenants')); - show all tenants (if you create one before!) + * example 1: ```print(tenantAdmin.exec('help'))``` - show the help + * example 2: ```print(tenantAdmin.exec('show tenants'));``` - show all tenants (if you create one before!) * **trans** * create a new transaction @@ -54,8 +54,8 @@ Following root objects are provided: * **workflowAdmin** * uses the workflowinterpreter from the workflow console * write your commands and get back the result in the js-console - * example 1: print(workflowAdmin.exec('help')) - show the help - * example 2: print(workflowAdmin.exec('show definitions')); - show all workflow definitions + * example 1: ```print(workflowAdmin.exec('help'))``` - show the help + * example 2: ```print(workflowAdmin.exec('show definitions'));``` - show all workflow definitions Building --------