From c655e3bf959c6ec9794e18eed16b5682fd766f7f Mon Sep 17 00:00:00 2001 From: Marco Del Tufo <marco.deltufo@exact-lab.it> Date: Tue, 8 Aug 2023 08:36:25 +0000 Subject: [PATCH] Update as-services.md --- .../server-side-extensions/as-services.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/docs/software-developer-documentation/server-side-extensions/as-services.md b/docs/software-developer-documentation/server-side-extensions/as-services.md index 4c639ab01a9..9bdae5623f5 100644 --- a/docs/software-developer-documentation/server-side-extensions/as-services.md +++ b/docs/software-developer-documentation/server-side-extensions/as-services.md @@ -57,19 +57,13 @@ be executed: public Object executeCustomASService(String sessionToken, ICustomASServiceId serviceId, CustomASServiceExecutionOptions options); ``` -The `serviceId` can be obtained from a `CustomASService` object (as -returned by the `searchCustomASServices` method) by the getter method -`getCode()`. It can also be created as an instance of -`CustomASServiceCode`. Note, that the service code is just the core -plugin name. +The `serviceId` can be obtained from a `CustomASService` object (as returned by the `searchCustomASServices` method) by the getter method `getCode()`. It can also be created as an instance of `CustomASServiceCode`. Note, that the service code is just the core plugin name. -Parameter bindings (i.e. key-value pairs) are specified in the -`CustomASServiceExecutionOptions` object by invoking for each binding -the method `withParameter()`. +Parameter bindings (i.e. key-value pairs) are specified in the `CustomASServiceExecutionOptions` object by invoking for each binding the method `withParameter()`. Here is a code example: -```py +```java CustomASServiceExecutionOptions options = new CustomASServiceExecutionOptions().withParameter("space_code", "my-space"); Object result = service.executeCustomASService(sessionToken, new CustomASServiceCode("space-creator"), options); System.out.println(result); -- GitLab