Highlighted
New Member.
301 views

Customer wants to avoid ‘change Requester’ approving the same Change request.

We have HPSM 9.35 with Change mgmt, using Process Designer. Customer wants to avoid ‘change Requester’ approving the same Change request. When he tries to approve, it should throw a popup saying ‘Requester cannot approve the Change’. Kindly suggest the best way to fulfil this requirement.

Writing conditions in display options to hide Approve/Deny/Override buttons may be possible. But this will not be fool proof, as the Approvers can still be able to approve over emails (using CIT integration to mailbox).

Writing conditions in approval definitions is very hectic, as the volume is more!

0 Likes
1 Reply
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Customer wants to avoid ‘change Requester’ approving the same Change request.

I did that in the DS going into the approvals. Display a message and turn them off. 

var file = system.vars.$L_file;
system.vars.$L_sox_override=isSoxCompliantApprovalAllowed(file.unique_key);

if (!system.vars.$L_sox_override) {
var strmsg=system.functions.scmsg("3","displayscreen");
var rc;
system.functions.rtecall("msg", rc , strmsg , 3);
system.vars.$L_can_approve=false;
system.vars.$L_can_override=false;

}

function isSoxCompliantApprovalAllowed(recNumber) {
var RetVal = true;
var record = new SCFile("cm3r");
var sql = "number=\"" + recNumber + "\"";
var rc = record.doSelect(sql);
if ( rc == RC_SUCCESS ) {
RetVal = record.requested_by != system.vars.$lo_contact_name;
//print("Change Number: " + recNumber + " isSoxCompliantApprovalAllowed()" + RetVal);
}
return RetVal;
}

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.