Groovy Script Issue
Summary
Problem entering a groovy scriptContent
Hello all,
I have the below script that when pressing validate I got the below error. Can anyone help please?
if (isAttributeChanged('Assigned To') && AssigneePersonName == 'bala.gupta')
return StatusCd == 'In Progress-Agent';
else
if (isAttributeChanged('Assigned To') && AssigneePersonName == 'Lisa Jones')
return StatusCd == 'In Progress-Senior';
else
if (isAttributeChanged('Assigned To') && AssigneePersonName == 'John Dunbar')
return StatusCd == 'In Progress-Manager';
Error generated when pressing Validate:
Error(1,1) : An internal compiler error occurred: org.codehaus.groovy.syntax.RuntimeParserException: Cannot use return statement with an expression on a method that returns void . At [3:1] bc4j.null.gs.groovy See the logs for the error stack.