<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Access endpoint from script in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16961#M7518</link>
    <description>&lt;P&gt;Yes, scripts and groovy have been enabled. The problem is that the runtime is unaware of endpointService. It needs to be defined somehow before calling. Referring to your other posts, it seems that you are injecting it with a bean. But is it your own mock implementation of EndpointService you are injecting or can you really access the endpoints defined in the tenant on Alfresco server runtime?&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2021 09:26:09 GMT</pubDate>
    <dc:creator>esakilpi</dc:creator>
    <dc:date>2021-02-18T09:26:09Z</dc:date>
    <item>
      <title>Access endpoint from script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16954#M7511</link>
      <description>&lt;P&gt;From script task, how to get an endpoint from a tenant?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 10:32:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16954#M7511</guid>
      <dc:creator>esakilpi</dc:creator>
      <dc:date>2021-02-11T10:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Access endpoint from script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16955#M7512</link>
      <description>&lt;P&gt;could you please describe your question a bit more?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 11:27:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16955#M7512</guid>
      <dc:creator>abbask01</dc:creator>
      <dc:date>2021-02-12T11:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access endpoint from script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16956#M7513</link>
      <description>&lt;P&gt;Yes, if you would like to call a REST endpoint form a groovy script, can you get the endpoint that is defined in the tenant somehow? Like the way you access process instance variables with execution.getVariable()?&lt;BR /&gt;The same endpoint definition that is used with REST call activity.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 15:53:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16956#M7513</guid>
      <dc:creator>esakilpi</dc:creator>
      <dc:date>2021-02-12T15:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Access endpoint from script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16957#M7514</link>
      <description>&lt;P&gt;You can access Endpoint from script task like below.&lt;/P&gt;&lt;P&gt;I have tried with javascript.&lt;/P&gt;&lt;P&gt;java.lang.System.out.println(endpointService.getConfigurationByName("Demo").getHost());&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 13:01:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16957#M7514</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2021-02-15T13:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Access endpoint from script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16958#M7515</link>
      <description>&lt;P&gt;Where can you find endpointService documentation?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 13:34:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16958#M7515</guid>
      <dc:creator>esakilpi</dc:creator>
      <dc:date>2021-02-15T13:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access endpoint from script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16959#M7516</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;PRE&gt;org.activiti.engine.ActivitiException: problem evaluating script: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: endpointService for class: Script7&lt;/PRE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 15 Feb 2021 15:01:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16959#M7516</guid>
      <dc:creator>esakilpi</dc:creator>
      <dc:date>2021-02-15T15:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Access endpoint from script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16960#M7517</link>
      <description>&lt;P&gt;You need to unable script at below place.&lt;/P&gt;&lt;P&gt;process-services\tomcat\webapps\activiti-app\WEB-INF\classes\activiti\whitelisted-scripts.conf&lt;/P&gt;&lt;P&gt;You need to unable scripttask at like below.(activiti-app.properties)&lt;/P&gt;&lt;P&gt;validator.editor.bpmn.disable.scripttask=false&lt;BR /&gt;validator.editor.bpmn.disable.scripttask.groovy=false&lt;/P&gt;&lt;P&gt;beans.whitelisting.enabled=true&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 06:08:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16960#M7517</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2021-02-18T06:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Access endpoint from script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16961#M7518</link>
      <description>&lt;P&gt;Yes, scripts and groovy have been enabled. The problem is that the runtime is unaware of endpointService. It needs to be defined somehow before calling. Referring to your other posts, it seems that you are injecting it with a bean. But is it your own mock implementation of EndpointService you are injecting or can you really access the endpoints defined in the tenant on Alfresco server runtime?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 09:26:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16961#M7518</guid>
      <dc:creator>esakilpi</dc:creator>
      <dc:date>2021-02-18T09:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Access endpoint from script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16962#M7519</link>
      <description>&lt;P&gt;It is not mock implementation.&lt;/P&gt;&lt;P&gt;I am actually able to get endpoint which is defined i&amp;nbsp; Tenant-&amp;gt;Endpoints.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 06:32:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16962#M7519</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2021-02-19T06:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Access endpoint from script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16963#M7520</link>
      <description>&lt;P&gt;I have previously tried with groovy only. Now I tested your code and got this error:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;jdk.nashorn.internal.runtime.ECMAException: ReferenceError: "endpointService" is not defined&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 14:08:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-endpoint-from-script/m-p/16963#M7520</guid>
      <dc:creator>esakilpi</dc:creator>
      <dc:date>2021-02-23T14:08:29Z</dc:date>
    </item>
  </channel>
</rss>

