Skip to content

Overview

Development

Overview

IDEs

API Explorer

GroovyMethods

The GroovyMethods class contains a bunch of one-liner methods for:

Here are some examples on how to use the GroovyMethods class:

Sample Gloop service showing how to use the GroovyMethods one-liners

1
2
3
4
5
6
// Gets value of the 'http.port' property of the current TORO Integrate instance
def port = 'http.port'.getIntegrateProperty()

// Gets the value of 'email' package property.
// If the 'email' property could not be found, return the dafault value 'bambi@deerclub.com'
def email = 'email'.getPackageProperty('bambi@deerclub.com')

  1. Such methods are handy for identifying which Integrate Package the currently running script belongs to.