UserDefined

User defined groovy functions in operations

Hi,

I have created a new groovy class and accessed the functions inside the operation tabs as follows.

Groovy Class :

package com.company.userderfined

class MyClass {
static def myMethod(String input) {
return "Hello ${input}"
}

def myMethod1(String input) {
return "Hello ${input}"
}
}

Calling Methods:

import com.company.userderfined.MyClass

MyClass m = new MyClass()
m.myMethod1("a")

Notifications