Hi Teneo developers
I have written a Groovy class GroovyHttps and loaded it as a resource to reference in a flow like this:
List responseJson = GroovyHttps.getRequest(getUrl);
but get this error:
Flow [Get devices at address] (ID=6dd0ef3b-a013-4612-979d-71c9381cb0fa): Vertex [getDevicesAtAddress] (ID=e71ae784-f05b-454c-91d3-2d58c15b5ae4), Action script: Script syntax error: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Compilation incomplete: expected to find the class GroovyHttps in Script177.groovy, but the file contains the classes: Script177 1 error
I thought the Groovy classes we load via resources are in the same namespace as the Groovy snippets in a Script node?