cancel
Showing results for 
Search instead for 
Did you mean: 

Error in EMailNotification_Approval task

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Just a bug in the script... solved

Former Member
0 Kudos

Hi,

I have the same issue, what was the solution?