Support Article

pyChangePassword harness does not load



The requirement is to show Change password screen if any operator profile password changes by third or IT security person.

Added a step in the application activity to "pyChangePassword" into "true".  This should kick off "pzShowCPHarness activity" or "pyChangePassword Harness".

This works fine first time, if the same operator profile is updated one more time, the pyChangePassword section is not loaded.


Error Messages

Not applicable

Steps to Reproduce

  1. Add a Property-Set in OnBefore Display activity with the following pre-conditions 1) @(Pega-RULES:String).equalsIgnoreCase(.pyPwdOld, .pyPwdCurrent) 2) @(Pega-RULES:String).equalsIgnoreCase(.pyUserIdentifier, .pxUpdateOperator).
  2. Change user password as an Admin.
  3. Log in with user - user changes their own password per prompt.
  4. Change user password again as an Admin.
  5. User logs in again.

Root Cause

An issue in the custom application code or rule : The second condition was not firing correctly.


Firstly, instead of using the OnBeforeDisplay activity use the operator Pre-Save activity (defined in Data-Admin-Operator-ID).

Secondly use the following precondition:

@(Pega-RULES:String).equalsIgnoreCase(.pyUserIdentifier, pxRequestor.pyUserIdentifier) 
In place of
@(Pega-RULES:String).equalsIgnoreCase(.pyUserIdentifier, .pxUpdateOperator)

Published November 4, 2016 - Updated November 11, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.