适用情况:计划性的事件,即定义Event时选择的Event Type为Scheduled Event,或者没有具体的object type
Detailed Description:
void sendNotification (String templateName,
String objNumber,
int objClass,
boolean isUrgent,
List recipients,
String comments
) throws AgileDSLException
Send notification.
Parameters:
templateName the name of the template you would like to send.
objNumber the objectNumber which you would like to send the notifcation for.
objClass the object class of the object which you would like to send the notification for.
isUrgent set to true if the notification is urgent.
recipients a list of recipients.
comments comment you would like to send with the notification.
Exceptions:
AgileDSLException if the method fails
Script PX脚本:
import com.agile.agileDSL.ScriptObj.IBaseScriptObj
import com.agile.agileDSL.ScriptObj.AgileDSLException
void invokeScript(IBaseScriptObj obj) {
try{
List notifyList = new ArrayList();
notifyList.add("Xing Xing");
obj.sendNotification("Activities - Notification for Project Object Delegation","T00940",18029,false,notifyList,"");
}
catch (Exception e)
{
e.printStackTrace();
throw new AgileDSLException(e);
}
}