on 11-11-2011 9:31 AM
Hi,
I've just implemented the Worklfow for Manager Approval. The process finds the right manager and the task is in his "TODO"-TAB.
But the task for EmailNotification_Approval throws an error:
ToGeneric.addEntry
undefined: "completeApproverList" is not defined.
Error putNextEntry failed storing6905
Warning: Executing howto_getApproverEmailFromPendingValue(6905 - {MX_ENTRY_REFERENCE=120, MX_APPROVERS=6869, MSKEY=6905}) got RuntimeException - undefined: "completeApproverList" is not defined. HINT: Check line 10 in the script howto_getApproverEmailFromPendingValue
The script for the task I have taken unchanged from the guide:
// Main function: howto_getApproverEmailFromPendingValue
function howto_getApproverEmailFromPendingValue(Par){
var logLevel = "%$LOGLEVEL%";
var pendingValue = Par.get("MSKEY");
var approverList = Par.get("MX_APPROVERS");
var entryReference = Par.get("MX_ENTRY_REFERENCE");
// uErrMsg(logLevel,"Approver List: " + approverList);
var approvers = new java.util.Vector();
approvers = uSplitString (completeApproverList, "|");
var i = 0;
var result;
var emailAddress = "";
var idStore = uGetIDStore();
var emailAttribute = "%$MAILATTRIBUTE%";
// uErrMsg(logLevel,"Approver length: " + approvers.length);
for (i=0; i < approvers.size(); i++) {
// uErrMsg(logLevel,"Approver: " + approvers.get(i));
emailAddress = uIS_GetValue(approvers.get(i), idStore, emailAttribute);
// uErrMsg(logLevel,"Email: " + emailAddress);
result = UserFunc.uSendSMTPMessage("%$MAILFROM%", emailAddress, "%$NOTIFICATION% " + entryReference, "%$PRETEXT% " + "Taskname"+ "%$POSTTEXT% %$URL%", "%$MAILSERVER%", 1);
if (result.length > 0) {
UserFunc.uErrMsg(2, result + ":Mail to:" + emailAddress);
}
}
return "";
Does anyone have any idea?
Just a bug in the script... solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.