When Using "IBaseScriptObj Interface " With Sendnotification API Getting Error Message
(Doc ID 2712824.1)
Last updated on SEPTEMBER 21, 2020
Applies to:
Oracle Agile PLM Framework - Version 9.3.4.0 and laterInformation in this document applies to any platform.
Symptoms
System is throwing error "com.agile.agileDSL.ScriptObj.AgileDSLException: java.lang.ArrayStoreException", while using below code.
import com.agile.agileDSL.ScriptObj.IBaseScriptObj
import com.agile.api.IUser
import com.agile.api.IAgileSession;
import com.agile.api.ChangeConstants;
void invokeScript(IBaseScriptObj obj) {
try{
IAgileSession session = obj.getAgileSDKSession();
List notifyList = new ArrayList();
IUser user =
(IUser) session.getObject(IUser.OBJECT_TYPE, "abc@xx.com");
notifyList.add(user);
String template =
"Change Oders - Approve changes, custom Reminder";
obj.sendNotification(template, "ECO-00000",ChangeConstants.CLASS_CHANGE_BASE_CLASS , false, notifyList, "test");
}catch(Exception e){
println("Exception:" + e.getMessage());
}
}
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |