cancel
Showing results for 
Search instead for 
Did you mean: 

Access endpoint from script

esakilpi
Champ in-the-making
Champ in-the-making

From script task, how to get an endpoint from a tenant?

9 REPLIES 9

abbask01
Star Collaborator
Star Collaborator

could you please describe your question a bit more?

Regards,
Abbas

esakilpi
Champ in-the-making
Champ in-the-making

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()?
The same endpoint definition that is used with REST call activity.

sanjaybandhniya
Elite Collaborator
Elite Collaborator

You can access Endpoint from script task like below.

I have tried with javascript.

java.lang.System.out.println(endpointService.getConfigurationByName("Demo").getHost());

Where can you find endpointService documentation?