I have two array below
def array1 = ["descrip" , "treat" , "diagonis"]
def array2 = ["123" , "345" , "678"]
Now I want to set my jcr content as below.
if body contains descrip then set it to 123 and if it contains treat then set to 345 and if it contains diagonis then set to 678
How can I achieve this in groovy script ?