Groovy Script to Cancel Change
Hi all,
I´m developing a Groovy Script to address the following requirement:
Based on an attribute value and after an acknowledgement, the workflow should go to Cancel (Dinied) instead of to go to Next Status.
Here goes the code and the error.
import com.agile.agileDSL.ScriptObj.IBaseScriptObj;
import com.agile.agileDSL.ScriptObj.AgileDSLException;
import com.agile.agileDSL.ScriptObj.ChangeStatusScriptObj
import com.agile.api.ChangeConstants;
import com.agile.api.CommonConstants;
import com.agile.api.IAdmin;
import com.agile.api.IAgileClass;
import com.agile.api.IAgileList;
import com.agile.api.IAgileSession;
// add other import statements here
void invokeScript(IBaseScriptObj obj, ChangeStatusScriptObj change) {