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!

  • 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;
    }