on 01-21-2008 10:43 AM
Hi, i was just trying to raise Alerts from a user defined function:
-
import com.sap.aii.af.service.alerting.*; (from aii_af_svc.jar)
String errText = "AdapterFramework on " + System.getProperty("SAPMYNAME", "");
String adapterType = "adapterType";
String fromParty = "fromParty";
String fromService = "fromService";
String toParty = "toParty";
String toService = "toService";
String msgInterface = "msgInterface";
String namespace = "namespace";
String errorCategory = "XI_UDF_ALERT";
String errorCode = "myError";
String errParams[] = {
"!XI Alert TestParam1", "!XI Alert TestParam2", "!XI Alert TestParam3", "!XI Alert TestParam4", "!XI Alert TestParam5"
};
String errValues[] = {
"!XI Alert TestValue1", "!XI Alert TestValue2", "!XI Alert TestValue3", "!XI Alert TestValue4", "!XI Alert TestValue5"
};
ErrorInfo errorInfo = ErrorInfo.newAFErrorInfo("msgId", errorCode, errorCategory, errText, adapterType, fromParty, toParty, fromService, toService, msgInterface, namespace, errParams, errValues);
try
{
Alert.newAlert(errorInfo).send();
}
catch(AlertingException e)
{
System.out.println(e.toString());
}
return input;
-
although i am using errorCategory = "XI_UDF_ALERT" it always ignores this and shows up Cat: XI_ALERTS
how can i change this?
Hi,
Your method is getting overriden somewhere..internally..see if you can find that class and override that class.
Regards
Ravi Raman
While(pointsAreAssigned ==true){
boolean getAReply = true;
}
else{
System.exit(0);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi !
There is another approach:
/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
Regards,
Matias
ps: please award points if helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.